diff --git a/_data/display_as.yml b/_data/display_as.yml index 572890b70..e49e0c4cb 100644 --- a/_data/display_as.yml +++ b/_data/display_as.yml @@ -19,6 +19,9 @@ basic: statistical: reference: '#statistical-charts' text: Statistical +ai_ml: + reference: '#ai-ml' + text: Artificial Intelligence and Machine Learning scientific: reference: '#scientific-charts' text: Scientific diff --git a/_data/display_as_py_r_js.yml b/_data/display_as_py_r_js.yml index fa010e283..d01a415a9 100644 --- a/_data/display_as_py_r_js.yml +++ b/_data/display_as_py_r_js.yml @@ -19,6 +19,9 @@ basic: statistical: reference: 'statistical-charts' text: Statistical Charts +ai_ml: + reference: '#ai-ml' + text: Artificial Intelligence and Machine Learning scientific: reference: 'scientific-charts' text: Scientific Charts diff --git a/_includes/layouts/side-bar.html b/_includes/layouts/side-bar.html index 0ffe0aae7..ed38adbdd 100644 --- a/_includes/layouts/side-bar.html +++ b/_includes/layouts/side-bar.html @@ -39,6 +39,8 @@ {% assign financial = true %} {% elsif page.display_as == "3d_charts" %} {% assign 3d_charts = true %} +{% elsif page.display_as == "ai_ml" %} +{% assign ai_ml = true %} {% elsif page.display_as == "advanced_charts"%} {% assign advanced_charts = true %} {% elsif page.display_as == "multiple_axes" %} @@ -259,6 +261,12 @@ {% endif %} + {% if ai_ml == true %} +
  • + Artificial Intelligence and Machine Learning +
  • + {% endif %} + {% if scientific == true %}
  • Scientific Charts diff --git a/_includes/posts/documentation_eg.html b/_includes/posts/documentation_eg.html index 67bd91e90..d043f9fe9 100644 --- a/_includes/posts/documentation_eg.html +++ b/_includes/posts/documentation_eg.html @@ -38,6 +38,8 @@ {% assign chart_studio = true %} {% elsif page.display_as == "advanced_opt" %} {% assign advanced_opt = true %} +{% elsif page.display_as == "ai_ml" %} +{% assign ai_ml = true %} {% elsif page.display_as == "aesthetics" %} @@ -96,7 +98,7 @@ {% if show_header %} Fundamentals {% endif %} - +
    +
    + +{% endif %} + +{% if ai_ml %} +
    +
    + {% if show_header %} + + Artificial Intelligence and Machine Learning + + {% endif %} + +
    +
    +
      + {%- for page in languagelist -%} + {% if page.display_as == "ai_ml" %} + + {% include layouts/grid-item.html %} + {% endif %} {%- endfor -%} @@ -876,4 +903,4 @@

      {% if page.language == "matlab" %}

      MATLAB is a registered trademark of The MathWorks, Inc.

      -{% endif %} \ No newline at end of file +{% endif %} diff --git a/_includes/posts/mainlang_documentation_eg.html b/_includes/posts/mainlang_documentation_eg.html index 43882d4dc..c1c950577 100644 --- a/_includes/posts/mainlang_documentation_eg.html +++ b/_includes/posts/mainlang_documentation_eg.html @@ -41,6 +41,8 @@ {% assign chart_studio = true %} {% elsif page.display_as == "advanced_opt" %} {% assign advanced_opt = true %} +{% elsif page.display_as == "ai_ml" %} +{% assign ai_ml = true %} {% endif %} {%- endfor -%} @@ -78,6 +80,28 @@

    {% endif %} + + +{% if ai_ml %} +
    +
    Artificial Intelligence and Machine Learning + More AI and ML » +
    +
    +
      + {%- for page in languagelist -%} + {% if page.display_as == "ai_ml" and page.order < num_examples %} + + + {% include layouts/grid-item.html %} + {% endif %} + {%- endfor -%} +
    + More AI and ML » +
    +
    +{% endif %} + {% if chart_type %}
    Basic Charts diff --git a/_posts/plotly_js/README.md b/_posts/plotly_js/README.md index ed44a731c..42e1e9873 100644 --- a/_posts/plotly_js/README.md +++ b/_posts/plotly_js/README.md @@ -44,7 +44,7 @@ order: 5 {% assign examples = site.posts | where:"language","plotly_js" | where:"suite","add-chart-type-or-topic"| sort: "order" %} {% include posts/auto_examples.html examples=examples %} ``` - - Make sure to update `_includes/posts/documentation_eg.html` with the new chart type! + - Make sure to update `_includes/posts/documentation_eg.html`, `_includes/layouts/side-bar.html`, and `_data/display_as_py_r_js.yml` and the CI python scripts with the new chart type! - Index pages for chart categories must have `order: 5`. diff --git a/_posts/python/2020-02-23-ai-index.html b/_posts/python/2020-02-23-ai-index.html new file mode 100644 index 000000000..ebcb59a5f --- /dev/null +++ b/_posts/python/2020-02-23-ai-index.html @@ -0,0 +1,27 @@ +--- +permalink: python/ai-ml/ +description: Plotly's Python graphing library makes interactive, publication-quality graphs online. Examples of how to make charts related to artificial intelligence and machine learning. +name: AI and ML Charts +layout: langindex +language: python +display_as: ai_ml +thumbnail: thumbnail/mixed.jpg +page_type: example_index +--- + + +
    +
    + +
    +
    +

    Plotly Python Open Source Graphing Library Artificial Intelligence and Machine Learning Charts

    +

    {{page.description}}

    +
    +
    +
    +
    + + + {% assign languagelist = site.posts | where: "language","python" | where: "display_as","ai_ml" | where: "layout","base" | sort: "order" %} + {% include posts/documentation_eg.html %} diff --git a/check-or-enforce-order.py b/check-or-enforce-order.py index 205c89fcd..73fd6feee 100644 --- a/check-or-enforce-order.py +++ b/check-or-enforce-order.py @@ -16,7 +16,7 @@ if sys.argv[2] == 'enforce': enforce = True -categories = ["file_settings", "basic", "financial", "statistical", "scientific", "maps", "3d_charts", "multiple_axes"] +categories = ["file_settings", "basic", "financial", "statistical", "scientific", "maps", "3d_charts", "multiple_axes", "ai_ml"] def get_post(path): return fm.load(str(path)) diff --git a/front-matter-ci.py b/front-matter-ci.py index 4f15e220c..265ccb053 100644 --- a/front-matter-ci.py +++ b/front-matter-ci.py @@ -75,6 +75,7 @@ def check_noTrailingSlash(meta_to_check): "maps", "3d_charts", "multiple_axes", + "ai_ml" ] languages = ["python", "python/v3", "plotly_js", "r"]