-
Notifications
You must be signed in to change notification settings - Fork 17
Description
hi, first thanks for maintaining this package, it's wonderful to be able to use Plotly from Go.
One thing I was recently missing is using themes (in particular I always use Dark themes). And while go-plotly exposes the Fig.Layout.Template
as an any
(interface{}
) field, simply setting it to a string (e.g.: "seaborn") like in Python, won't work.
After some investigation, I didn't find the themes defined in the Javascript version of plotly library either.
So I took the python defined themes (as JSON), converted them to Go (as a map[string]any
) and used that in my go-plotly
plots, and it worked perfectly.
I did the same with the "ggplot2" and "seaborn" themes.
I was going to suggest to offer these themes as global variables in the any of the packages, so one can simply use them, by setting Fig.Layout.Template
to any of the themes.
Here are the JSON values I extracted from the Python plotly.io
library and converted to Go:
var (
// PlotlyDarkTheme can be set to a `Fig.Layout.Template` field, to specify a theme for the figure.
//
// It was converted from the Python's plotly library, from the "plotly_dark" theme.
PlotlyDarkTheme = map[string]any{"data": map[string]any{"bar": []any{map[string]any{"error_x": map[string]any{"color": "#f2f5fa"}, "error_y": map[string]any{"color": "#f2f5fa"}, "marker": map[string]any{"line": map[string]any{"color": "rgb(17,17,17)", "width": 0.5}, "pattern": map[string]any{"fillmode": "overlay", "size": 10, "solidity": 0.2}}, "type": "bar"}}, "barpolar": []any{map[string]any{"marker": map[string]any{"line": map[string]any{"color": "rgb(17,17,17)", "width": 0.5}, "pattern": map[string]any{"fillmode": "overlay", "size": 10, "solidity": 0.2}}, "type": "barpolar"}}, "carpet": []any{map[string]any{"aaxis": map[string]any{"endlinecolor": "#A2B1C6", "gridcolor": "#506784", "linecolor": "#506784", "minorgridcolor": "#506784", "startlinecolor": "#A2B1C6"}, "baxis": map[string]any{"endlinecolor": "#A2B1C6", "gridcolor": "#506784", "linecolor": "#506784", "minorgridcolor": "#506784", "startlinecolor": "#A2B1C6"}, "type": "carpet"}}, "choropleth": []any{map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "ticks": ""}, "type": "choropleth"}}, "contour": []any{map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "ticks": ""}, "colorscale": []any{[]any{0, "#0d0887"}, []any{0.1111111111111111, "#46039f"}, []any{0.2222222222222222, "#7201a8"}, []any{0.3333333333333333, "#9c179e"}, []any{0.4444444444444444, "#bd3786"}, []any{0.5555555555555556, "#d8576b"}, []any{0.6666666666666666, "#ed7953"}, []any{0.7777777777777778, "#fb9f3a"}, []any{0.8888888888888888, "#fdca26"}, []any{1, "#f0f921"}}, "type": "contour"}}, "contourcarpet": []any{map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "ticks": ""}, "type": "contourcarpet"}}, "heatmap": []any{map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "ticks": ""}, "colorscale": []any{[]any{0, "#0d0887"}, []any{0.1111111111111111, "#46039f"}, []any{0.2222222222222222, "#7201a8"}, []any{0.3333333333333333, "#9c179e"}, []any{0.4444444444444444, "#bd3786"}, []any{0.5555555555555556, "#d8576b"}, []any{0.6666666666666666, "#ed7953"}, []any{0.7777777777777778, "#fb9f3a"}, []any{0.8888888888888888, "#fdca26"}, []any{1, "#f0f921"}}, "type": "heatmap"}}, "histogram": []any{map[string]any{"marker": map[string]any{"pattern": map[string]any{"fillmode": "overlay", "size": 10, "solidity": 0.2}}, "type": "histogram"}}, "histogram2d": []any{map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "ticks": ""}, "colorscale": []any{[]any{0, "#0d0887"}, []any{0.1111111111111111, "#46039f"}, []any{0.2222222222222222, "#7201a8"}, []any{0.3333333333333333, "#9c179e"}, []any{0.4444444444444444, "#bd3786"}, []any{0.5555555555555556, "#d8576b"}, []any{0.6666666666666666, "#ed7953"}, []any{0.7777777777777778, "#fb9f3a"}, []any{0.8888888888888888, "#fdca26"}, []any{1, "#f0f921"}}, "type": "histogram2d"}}, "histogram2dcontour": []any{map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "ticks": ""}, "colorscale": []any{[]any{0, "#0d0887"}, []any{0.1111111111111111, "#46039f"}, []any{0.2222222222222222, "#7201a8"}, []any{0.3333333333333333, "#9c179e"}, []any{0.4444444444444444, "#bd3786"}, []any{0.5555555555555556, "#d8576b"}, []any{0.6666666666666666, "#ed7953"}, []any{0.7777777777777778, "#fb9f3a"}, []any{0.8888888888888888, "#fdca26"}, []any{1, "#f0f921"}}, "type": "histogram2dcontour"}}, "mesh3d": []any{map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "ticks": ""}, "type": "mesh3d"}}, "parcoords": []any{map[string]any{"line": map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "ticks": ""}}, "type": "parcoords"}}, "pie": []any{map[string]any{"automargin": true, "type": "pie"}}, "scatter": []any{map[string]any{"marker": map[string]any{"line": map[string]any{"color": "#283442"}}, "type": "scatter"}}, "scatter3d": []any{map[string]any{"line": map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "ticks": ""}}, "marker": map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "ticks": ""}}, "type": "scatter3d"}}, "scattercarpet": []any{map[string]any{"marker": map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "ticks": ""}}, "type": "scattercarpet"}}, "scattergeo": []any{map[string]any{"marker": map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "ticks": ""}}, "type": "scattergeo"}}, "scattergl": []any{map[string]any{"marker": map[string]any{"line": map[string]any{"color": "#283442"}}, "type": "scattergl"}}, "scattermap": []any{map[string]any{"marker": map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "ticks": ""}}, "type": "scattermap"}}, "scattermapbox": []any{map[string]any{"marker": map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "ticks": ""}}, "type": "scattermapbox"}}, "scatterpolar": []any{map[string]any{"marker": map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "ticks": ""}}, "type": "scatterpolar"}}, "scatterpolargl": []any{map[string]any{"marker": map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "ticks": ""}}, "type": "scatterpolargl"}}, "scatterternary": []any{map[string]any{"marker": map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "ticks": ""}}, "type": "scatterternary"}}, "surface": []any{map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "ticks": ""}, "colorscale": []any{[]any{0, "#0d0887"}, []any{0.1111111111111111, "#46039f"}, []any{0.2222222222222222, "#7201a8"}, []any{0.3333333333333333, "#9c179e"}, []any{0.4444444444444444, "#bd3786"}, []any{0.5555555555555556, "#d8576b"}, []any{0.6666666666666666, "#ed7953"}, []any{0.7777777777777778, "#fb9f3a"}, []any{0.8888888888888888, "#fdca26"}, []any{1, "#f0f921"}}, "type": "surface"}}, "table": []any{map[string]any{"cells": map[string]any{"fill": map[string]any{"color": "#506784"}, "line": map[string]any{"color": "rgb(17,17,17)"}}, "header": map[string]any{"fill": map[string]any{"color": "#2a3f5f"}, "line": map[string]any{"color": "rgb(17,17,17)"}}, "type": "table"}}}, "layout": map[string]any{"annotationdefaults": map[string]any{"arrowcolor": "#f2f5fa", "arrowhead": 0, "arrowwidth": 1}, "autotypenumbers": "strict", "coloraxis": map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "ticks": ""}}, "colorscale": map[string]any{"diverging": []any{[]any{0, "#8e0152"}, []any{0.1, "#c51b7d"}, []any{0.2, "#de77ae"}, []any{0.3, "#f1b6da"}, []any{0.4, "#fde0ef"}, []any{0.5, "#f7f7f7"}, []any{0.6, "#e6f5d0"}, []any{0.7, "#b8e186"}, []any{0.8, "#7fbc41"}, []any{0.9, "#4d9221"}, []any{1, "#276419"}}, "sequential": []any{[]any{0, "#0d0887"}, []any{0.1111111111111111, "#46039f"}, []any{0.2222222222222222, "#7201a8"}, []any{0.3333333333333333, "#9c179e"}, []any{0.4444444444444444, "#bd3786"}, []any{0.5555555555555556, "#d8576b"}, []any{0.6666666666666666, "#ed7953"}, []any{0.7777777777777778, "#fb9f3a"}, []any{0.8888888888888888, "#fdca26"}, []any{1, "#f0f921"}}, "sequentialminus": []any{[]any{0, "#0d0887"}, []any{0.1111111111111111, "#46039f"}, []any{0.2222222222222222, "#7201a8"}, []any{0.3333333333333333, "#9c179e"}, []any{0.4444444444444444, "#bd3786"}, []any{0.5555555555555556, "#d8576b"}, []any{0.6666666666666666, "#ed7953"}, []any{0.7777777777777778, "#fb9f3a"}, []any{0.8888888888888888, "#fdca26"}, []any{1, "#f0f921"}}}, "colorway": []any{"#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52"}, "font": map[string]any{"color": "#f2f5fa"}, "geo": map[string]any{"bgcolor": "rgb(17,17,17)", "lakecolor": "rgb(17,17,17)", "landcolor": "rgb(17,17,17)", "showlakes": true, "showland": true, "subunitcolor": "#506784"}, "hoverlabel": map[string]any{"align": "left"}, "hovermode": "closest", "mapbox": map[string]any{"style": "dark"}, "paper_bgcolor": "rgb(17,17,17)", "plot_bgcolor": "rgb(17,17,17)", "polar": map[string]any{"angularaxis": map[string]any{"gridcolor": "#506784", "linecolor": "#506784", "ticks": ""}, "bgcolor": "rgb(17,17,17)", "radialaxis": map[string]any{"gridcolor": "#506784", "linecolor": "#506784", "ticks": ""}}, "scene": map[string]any{"xaxis": map[string]any{"backgroundcolor": "rgb(17,17,17)", "gridcolor": "#506784", "gridwidth": 2, "linecolor": "#506784", "showbackground": true, "ticks": "", "zerolinecolor": "#C8D4E3"}, "yaxis": map[string]any{"backgroundcolor": "rgb(17,17,17)", "gridcolor": "#506784", "gridwidth": 2, "linecolor": "#506784", "showbackground": true, "ticks": "", "zerolinecolor": "#C8D4E3"}, "zaxis": map[string]any{"backgroundcolor": "rgb(17,17,17)", "gridcolor": "#506784", "gridwidth": 2, "linecolor": "#506784", "showbackground": true, "ticks": "", "zerolinecolor": "#C8D4E3"}}, "shapedefaults": map[string]any{"line": map[string]any{"color": "#f2f5fa"}}, "sliderdefaults": map[string]any{"bgcolor": "#C8D4E3", "bordercolor": "rgb(17,17,17)", "borderwidth": 1, "tickwidth": 0}, "ternary": map[string]any{"aaxis": map[string]any{"gridcolor": "#506784", "linecolor": "#506784", "ticks": ""}, "baxis": map[string]any{"gridcolor": "#506784", "linecolor": "#506784", "ticks": ""}, "bgcolor": "rgb(17,17,17)", "caxis": map[string]any{"gridcolor": "#506784", "linecolor": "#506784", "ticks": ""}}, "title": map[string]any{"x": 0.05}, "updatemenudefaults": map[string]any{"bgcolor": "#506784", "borderwidth": 0}, "xaxis": map[string]any{"automargin": true, "gridcolor": "#283442", "linecolor": "#506784", "ticks": "", "title": map[string]any{"standoff": 15}, "zerolinecolor": "#283442", "zerolinewidth": 2}, "yaxis": map[string]any{"automargin": true, "gridcolor": "#283442", "linecolor": "#506784", "ticks": "", "title": map[string]any{"standoff": 15}, "zerolinecolor": "#283442", "zerolinewidth": 2}}}
// SeabornTheme can be set to a `Fig.Layout.Template` field, to specify a theme for the figure.
//
// It was converted from the Python's plotly library, from the "seaborn" theme.
SeabornTheme = map[string]any{"data": map[string]any{"bar": []any{map[string]any{"error_x": map[string]any{"color": "rgb(36,36,36)"}, "error_y": map[string]any{"color": "rgb(36,36,36)"}, "marker": map[string]any{"line": map[string]any{"color": "rgb(234,234,242)", "width": 0.5}, "pattern": map[string]any{"fillmode": "overlay", "size": 10, "solidity": 0.2}}, "type": "bar"}}, "barpolar": []any{map[string]any{"marker": map[string]any{"line": map[string]any{"color": "rgb(234,234,242)", "width": 0.5}, "pattern": map[string]any{"fillmode": "overlay", "size": 10, "solidity": 0.2}}, "type": "barpolar"}}, "carpet": []any{map[string]any{"aaxis": map[string]any{"endlinecolor": "rgb(36,36,36)", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "rgb(36,36,36)"}, "baxis": map[string]any{"endlinecolor": "rgb(36,36,36)", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "rgb(36,36,36)"}, "type": "carpet"}}, "choropleth": []any{map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2}, "type": "choropleth"}}, "contour": []any{map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2}, "colorscale": []any{[]any{0, "rgb(2,4,25)"}, []any{0.06274509803921569, "rgb(24,15,41)"}, []any{0.12549019607843137, "rgb(47,23,57)"}, []any{0.18823529411764706, "rgb(71,28,72)"}, []any{0.25098039215686274, "rgb(97,30,82)"}, []any{0.3137254901960784, "rgb(123,30,89)"}, []any{0.3764705882352941, "rgb(150,27,91)"}, []any{0.4392156862745098, "rgb(177,22,88)"}, []any{0.5019607843137255, "rgb(203,26,79)"}, []any{0.5647058823529412, "rgb(223,47,67)"}, []any{0.6274509803921569, "rgb(236,76,61)"}, []any{0.6901960784313725, "rgb(242,107,73)"}, []any{0.7529411764705882, "rgb(244,135,95)"}, []any{0.8156862745098039, "rgb(245,162,122)"}, []any{0.8784313725490196, "rgb(246,188,153)"}, []any{0.9411764705882353, "rgb(247,212,187)"}, []any{1, "rgb(250,234,220)"}}, "type": "contour"}}, "contourcarpet": []any{map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2}, "type": "contourcarpet"}}, "heatmap": []any{map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2}, "colorscale": []any{[]any{0, "rgb(2,4,25)"}, []any{0.06274509803921569, "rgb(24,15,41)"}, []any{0.12549019607843137, "rgb(47,23,57)"}, []any{0.18823529411764706, "rgb(71,28,72)"}, []any{0.25098039215686274, "rgb(97,30,82)"}, []any{0.3137254901960784, "rgb(123,30,89)"}, []any{0.3764705882352941, "rgb(150,27,91)"}, []any{0.4392156862745098, "rgb(177,22,88)"}, []any{0.5019607843137255, "rgb(203,26,79)"}, []any{0.5647058823529412, "rgb(223,47,67)"}, []any{0.6274509803921569, "rgb(236,76,61)"}, []any{0.6901960784313725, "rgb(242,107,73)"}, []any{0.7529411764705882, "rgb(244,135,95)"}, []any{0.8156862745098039, "rgb(245,162,122)"}, []any{0.8784313725490196, "rgb(246,188,153)"}, []any{0.9411764705882353, "rgb(247,212,187)"}, []any{1, "rgb(250,234,220)"}}, "type": "heatmap"}}, "histogram": []any{map[string]any{"marker": map[string]any{"pattern": map[string]any{"fillmode": "overlay", "size": 10, "solidity": 0.2}}, "type": "histogram"}}, "histogram2d": []any{map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2}, "colorscale": []any{[]any{0, "rgb(2,4,25)"}, []any{0.06274509803921569, "rgb(24,15,41)"}, []any{0.12549019607843137, "rgb(47,23,57)"}, []any{0.18823529411764706, "rgb(71,28,72)"}, []any{0.25098039215686274, "rgb(97,30,82)"}, []any{0.3137254901960784, "rgb(123,30,89)"}, []any{0.3764705882352941, "rgb(150,27,91)"}, []any{0.4392156862745098, "rgb(177,22,88)"}, []any{0.5019607843137255, "rgb(203,26,79)"}, []any{0.5647058823529412, "rgb(223,47,67)"}, []any{0.6274509803921569, "rgb(236,76,61)"}, []any{0.6901960784313725, "rgb(242,107,73)"}, []any{0.7529411764705882, "rgb(244,135,95)"}, []any{0.8156862745098039, "rgb(245,162,122)"}, []any{0.8784313725490196, "rgb(246,188,153)"}, []any{0.9411764705882353, "rgb(247,212,187)"}, []any{1, "rgb(250,234,220)"}}, "type": "histogram2d"}}, "histogram2dcontour": []any{map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2}, "colorscale": []any{[]any{0, "rgb(2,4,25)"}, []any{0.06274509803921569, "rgb(24,15,41)"}, []any{0.12549019607843137, "rgb(47,23,57)"}, []any{0.18823529411764706, "rgb(71,28,72)"}, []any{0.25098039215686274, "rgb(97,30,82)"}, []any{0.3137254901960784, "rgb(123,30,89)"}, []any{0.3764705882352941, "rgb(150,27,91)"}, []any{0.4392156862745098, "rgb(177,22,88)"}, []any{0.5019607843137255, "rgb(203,26,79)"}, []any{0.5647058823529412, "rgb(223,47,67)"}, []any{0.6274509803921569, "rgb(236,76,61)"}, []any{0.6901960784313725, "rgb(242,107,73)"}, []any{0.7529411764705882, "rgb(244,135,95)"}, []any{0.8156862745098039, "rgb(245,162,122)"}, []any{0.8784313725490196, "rgb(246,188,153)"}, []any{0.9411764705882353, "rgb(247,212,187)"}, []any{1, "rgb(250,234,220)"}}, "type": "histogram2dcontour"}}, "mesh3d": []any{map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2}, "type": "mesh3d"}}, "parcoords": []any{map[string]any{"line": map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2}}, "type": "parcoords"}}, "pie": []any{map[string]any{"automargin": true, "type": "pie"}}, "scatter": []any{map[string]any{"fillpattern": map[string]any{"fillmode": "overlay", "size": 10, "solidity": 0.2}, "type": "scatter"}}, "scatter3d": []any{map[string]any{"line": map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2}}, "marker": map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2}}, "type": "scatter3d"}}, "scattercarpet": []any{map[string]any{"marker": map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2}}, "type": "scattercarpet"}}, "scattergeo": []any{map[string]any{"marker": map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2}}, "type": "scattergeo"}}, "scattergl": []any{map[string]any{"marker": map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2}}, "type": "scattergl"}}, "scattermap": []any{map[string]any{"marker": map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2}}, "type": "scattermap"}}, "scattermapbox": []any{map[string]any{"marker": map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2}}, "type": "scattermapbox"}}, "scatterpolar": []any{map[string]any{"marker": map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2}}, "type": "scatterpolar"}}, "scatterpolargl": []any{map[string]any{"marker": map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2}}, "type": "scatterpolargl"}}, "scatterternary": []any{map[string]any{"marker": map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2}}, "type": "scatterternary"}}, "surface": []any{map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2}, "colorscale": []any{[]any{0, "rgb(2,4,25)"}, []any{0.06274509803921569, "rgb(24,15,41)"}, []any{0.12549019607843137, "rgb(47,23,57)"}, []any{0.18823529411764706, "rgb(71,28,72)"}, []any{0.25098039215686274, "rgb(97,30,82)"}, []any{0.3137254901960784, "rgb(123,30,89)"}, []any{0.3764705882352941, "rgb(150,27,91)"}, []any{0.4392156862745098, "rgb(177,22,88)"}, []any{0.5019607843137255, "rgb(203,26,79)"}, []any{0.5647058823529412, "rgb(223,47,67)"}, []any{0.6274509803921569, "rgb(236,76,61)"}, []any{0.6901960784313725, "rgb(242,107,73)"}, []any{0.7529411764705882, "rgb(244,135,95)"}, []any{0.8156862745098039, "rgb(245,162,122)"}, []any{0.8784313725490196, "rgb(246,188,153)"}, []any{0.9411764705882353, "rgb(247,212,187)"}, []any{1, "rgb(250,234,220)"}}, "type": "surface"}}, "table": []any{map[string]any{"cells": map[string]any{"fill": map[string]any{"color": "rgb(231,231,240)"}, "line": map[string]any{"color": "white"}}, "header": map[string]any{"fill": map[string]any{"color": "rgb(183,183,191)"}, "line": map[string]any{"color": "white"}}, "type": "table"}}}, "layout": map[string]any{"annotationdefaults": map[string]any{"arrowcolor": "rgb(67,103,167)"}, "autotypenumbers": "strict", "coloraxis": map[string]any{"colorbar": map[string]any{"outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2}}, "colorscale": map[string]any{"sequential": []any{[]any{0, "rgb(2,4,25)"}, []any{0.06274509803921569, "rgb(24,15,41)"}, []any{0.12549019607843137, "rgb(47,23,57)"}, []any{0.18823529411764706, "rgb(71,28,72)"}, []any{0.25098039215686274, "rgb(97,30,82)"}, []any{0.3137254901960784, "rgb(123,30,89)"}, []any{0.3764705882352941, "rgb(150,27,91)"}, []any{0.4392156862745098, "rgb(177,22,88)"}, []any{0.5019607843137255, "rgb(203,26,79)"}, []any{0.5647058823529412, "rgb(223,47,67)"}, []any{0.6274509803921569, "rgb(236,76,61)"}, []any{0.6901960784313725, "rgb(242,107,73)"}, []any{0.7529411764705882, "rgb(244,135,95)"}, []any{0.8156862745098039, "rgb(245,162,122)"}, []any{0.8784313725490196, "rgb(246,188,153)"}, []any{0.9411764705882353, "rgb(247,212,187)"}, []any{1, "rgb(250,234,220)"}}, "sequentialminus": []any{[]any{0, "rgb(2,4,25)"}, []any{0.06274509803921569, "rgb(24,15,41)"}, []any{0.12549019607843137, "rgb(47,23,57)"}, []any{0.18823529411764706, "rgb(71,28,72)"}, []any{0.25098039215686274, "rgb(97,30,82)"}, []any{0.3137254901960784, "rgb(123,30,89)"}, []any{0.3764705882352941, "rgb(150,27,91)"}, []any{0.4392156862745098, "rgb(177,22,88)"}, []any{0.5019607843137255, "rgb(203,26,79)"}, []any{0.5647058823529412, "rgb(223,47,67)"}, []any{0.6274509803921569, "rgb(236,76,61)"}, []any{0.6901960784313725, "rgb(242,107,73)"}, []any{0.7529411764705882, "rgb(244,135,95)"}, []any{0.8156862745098039, "rgb(245,162,122)"}, []any{0.8784313725490196, "rgb(246,188,153)"}, []any{0.9411764705882353, "rgb(247,212,187)"}, []any{1, "rgb(250,234,220)"}}}, "colorway": []any{"rgb(76,114,176)", "rgb(221,132,82)", "rgb(85,168,104)", "rgb(196,78,82)", "rgb(129,114,179)", "rgb(147,120,96)", "rgb(218,139,195)", "rgb(140,140,140)", "rgb(204,185,116)", "rgb(100,181,205)"}, "font": map[string]any{"color": "rgb(36,36,36)"}, "geo": map[string]any{"bgcolor": "white", "lakecolor": "white", "landcolor": "rgb(234,234,242)", "showlakes": true, "showland": true, "subunitcolor": "white"}, "hoverlabel": map[string]any{"align": "left"}, "hovermode": "closest", "paper_bgcolor": "white", "plot_bgcolor": "rgb(234,234,242)", "polar": map[string]any{"angularaxis": map[string]any{"gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": ""}, "bgcolor": "rgb(234,234,242)", "radialaxis": map[string]any{"gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": ""}}, "scene": map[string]any{"xaxis": map[string]any{"backgroundcolor": "rgb(234,234,242)", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "showgrid": true, "ticks": "", "zerolinecolor": "white"}, "yaxis": map[string]any{"backgroundcolor": "rgb(234,234,242)", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "showgrid": true, "ticks": "", "zerolinecolor": "white"}, "zaxis": map[string]any{"backgroundcolor": "rgb(234,234,242)", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "showgrid": true, "ticks": "", "zerolinecolor": "white"}}, "shapedefaults": map[string]any{"fillcolor": "rgb(67,103,167)", "line": map[string]any{"width": 0}, "opacity": 0.5}, "ternary": map[string]any{"aaxis": map[string]any{"gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": ""}, "baxis": map[string]any{"gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": ""}, "bgcolor": "rgb(234,234,242)", "caxis": map[string]any{"gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": ""}}, "xaxis": map[string]any{"automargin": true, "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "", "title": map[string]any{"standoff": 15}, "zerolinecolor": "white"}, "yaxis": map[string]any{"automargin": true, "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "", "title": map[string]any{"standoff": 15}, "zerolinecolor": "white"}}}
// GGPlot2Theme can be set to a `Fig.Layout.Template` field, to specify a theme for the figure.
//
// It was converted from the Python's plotly library, from the "ggplot2" theme.
GGPlot2Theme = map[string]interface{}{"data": map[string]interface{}{"bar": []interface{}{map[string]interface{}{"error_x": map[string]interface{}{"color": "rgb(51,51,51)"}, "error_y": map[string]interface{}{"color": "rgb(51,51,51)"}, "marker": map[string]interface{}{"line": map[string]interface{}{"color": "rgb(237,237,237)", "width": 0.5}, "pattern": map[string]interface{}{"fillmode": "overlay", "size": 10, "solidity": 0.2}}, "type": "bar"}}, "barpolar": []interface{}{map[string]interface{}{"marker": map[string]interface{}{"line": map[string]interface{}{"color": "rgb(237,237,237)", "width": 0.5}, "pattern": map[string]interface{}{"fillmode": "overlay", "size": 10, "solidity": 0.2}}, "type": "barpolar"}}, "carpet": []interface{}{map[string]interface{}{"aaxis": map[string]interface{}{"endlinecolor": "rgb(51,51,51)", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "rgb(51,51,51)"}, "baxis": map[string]interface{}{"endlinecolor": "rgb(51,51,51)", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "rgb(51,51,51)"}, "type": "carpet"}}, "choropleth": []interface{}{map[string]interface{}{"colorbar": map[string]interface{}{"outlinewidth": 0, "tickcolor": "rgb(237,237,237)", "ticklen": 6, "ticks": "inside"}, "type": "choropleth"}}, "contour": []interface{}{map[string]interface{}{"colorbar": map[string]interface{}{"outlinewidth": 0, "tickcolor": "rgb(237,237,237)", "ticklen": 6, "ticks": "inside"}, "colorscale": []interface{}{[]interface{}{0, "rgb(20,44,66)"}, []interface{}{1, "rgb(90,179,244)"}}, "type": "contour"}}, "contourcarpet": []interface{}{map[string]interface{}{"colorbar": map[string]interface{}{"outlinewidth": 0, "tickcolor": "rgb(237,237,237)", "ticklen": 6, "ticks": "inside"}, "type": "contourcarpet"}}, "heatmap": []interface{}{map[string]interface{}{"colorbar": map[string]interface{}{"outlinewidth": 0, "tickcolor": "rgb(237,237,237)", "ticklen": 6, "ticks": "inside"}, "colorscale": []interface{}{[]interface{}{0, "rgb(20,44,66)"}, []interface{}{1, "rgb(90,179,244)"}}, "type": "heatmap"}}, "histogram": []interface{}{map[string]interface{}{"marker": map[string]interface{}{"pattern": map[string]interface{}{"fillmode": "overlay", "size": 10, "solidity": 0.2}}, "type": "histogram"}}, "histogram2d": []interface{}{map[string]interface{}{"colorbar": map[string]interface{}{"outlinewidth": 0, "tickcolor": "rgb(237,237,237)", "ticklen": 6, "ticks": "inside"}, "colorscale": []interface{}{[]interface{}{0, "rgb(20,44,66)"}, []interface{}{1, "rgb(90,179,244)"}}, "type": "histogram2d"}}, "histogram2dcontour": []interface{}{map[string]interface{}{"colorbar": map[string]interface{}{"outlinewidth": 0, "tickcolor": "rgb(237,237,237)", "ticklen": 6, "ticks": "inside"}, "colorscale": []interface{}{[]interface{}{0, "rgb(20,44,66)"}, []interface{}{1, "rgb(90,179,244)"}}, "type": "histogram2dcontour"}}, "mesh3d": []interface{}{map[string]interface{}{"colorbar": map[string]interface{}{"outlinewidth": 0, "tickcolor": "rgb(237,237,237)", "ticklen": 6, "ticks": "inside"}, "type": "mesh3d"}}, "parcoords": []interface{}{map[string]interface{}{"line": map[string]interface{}{"colorbar": map[string]interface{}{"outlinewidth": 0, "tickcolor": "rgb(237,237,237)", "ticklen": 6, "ticks": "inside"}}, "type": "parcoords"}}, "pie": []interface{}{map[string]interface{}{"automargin": true, "type": "pie"}}, "scatter": []interface{}{map[string]interface{}{"fillpattern": map[string]interface{}{"fillmode": "overlay", "size": 10, "solidity": 0.2}, "type": "scatter"}}, "scatter3d": []interface{}{map[string]interface{}{"line": map[string]interface{}{"colorbar": map[string]interface{}{"outlinewidth": 0, "tickcolor": "rgb(237,237,237)", "ticklen": 6, "ticks": "inside"}}, "marker": map[string]interface{}{"colorbar": map[string]interface{}{"outlinewidth": 0, "tickcolor": "rgb(237,237,237)", "ticklen": 6, "ticks": "inside"}}, "type": "scatter3d"}}, "scattercarpet": []interface{}{map[string]interface{}{"marker": map[string]interface{}{"colorbar": map[string]interface{}{"outlinewidth": 0, "tickcolor": "rgb(237,237,237)", "ticklen": 6, "ticks": "inside"}}, "type": "scattercarpet"}}, "scattergeo": []interface{}{map[string]interface{}{"marker": map[string]interface{}{"colorbar": map[string]interface{}{"outlinewidth": 0, "tickcolor": "rgb(237,237,237)", "ticklen": 6, "ticks": "inside"}}, "type": "scattergeo"}}, "scattergl": []interface{}{map[string]interface{}{"marker": map[string]interface{}{"colorbar": map[string]interface{}{"outlinewidth": 0, "tickcolor": "rgb(237,237,237)", "ticklen": 6, "ticks": "inside"}}, "type": "scattergl"}}, "scattermap": []interface{}{map[string]interface{}{"marker": map[string]interface{}{"colorbar": map[string]interface{}{"outlinewidth": 0, "tickcolor": "rgb(237,237,237)", "ticklen": 6, "ticks": "inside"}}, "type": "scattermap"}}, "scattermapbox": []interface{}{map[string]interface{}{"marker": map[string]interface{}{"colorbar": map[string]interface{}{"outlinewidth": 0, "tickcolor": "rgb(237,237,237)", "ticklen": 6, "ticks": "inside"}}, "type": "scattermapbox"}}, "scatterpolar": []interface{}{map[string]interface{}{"marker": map[string]interface{}{"colorbar": map[string]interface{}{"outlinewidth": 0, "tickcolor": "rgb(237,237,237)", "ticklen": 6, "ticks": "inside"}}, "type": "scatterpolar"}}, "scatterpolargl": []interface{}{map[string]interface{}{"marker": map[string]interface{}{"colorbar": map[string]interface{}{"outlinewidth": 0, "tickcolor": "rgb(237,237,237)", "ticklen": 6, "ticks": "inside"}}, "type": "scatterpolargl"}}, "scatterternary": []interface{}{map[string]interface{}{"marker": map[string]interface{}{"colorbar": map[string]interface{}{"outlinewidth": 0, "tickcolor": "rgb(237,237,237)", "ticklen": 6, "ticks": "inside"}}, "type": "scatterternary"}}, "surface": []interface{}{map[string]interface{}{"colorbar": map[string]interface{}{"outlinewidth": 0, "tickcolor": "rgb(237,237,237)", "ticklen": 6, "ticks": "inside"}, "colorscale": []interface{}{[]interface{}{0, "rgb(20,44,66)"}, []interface{}{1, "rgb(90,179,244)"}}, "type": "surface"}}, "table": []interface{}{map[string]interface{}{"cells": map[string]interface{}{"fill": map[string]interface{}{"color": "rgb(237,237,237)"}, "line": map[string]interface{}{"color": "white"}}, "header": map[string]interface{}{"fill": map[string]interface{}{"color": "rgb(217,217,217)"}, "line": map[string]interface{}{"color": "white"}}, "type": "table"}}}, "layout": map[string]interface{}{"annotationdefaults": map[string]interface{}{"arrowhead": 0, "arrowwidth": 1}, "autotypenumbers": "strict", "coloraxis": map[string]interface{}{"colorbar": map[string]interface{}{"outlinewidth": 0, "tickcolor": "rgb(237,237,237)", "ticklen": 6, "ticks": "inside"}}, "colorscale": map[string]interface{}{"sequential": []interface{}{[]interface{}{0, "rgb(20,44,66)"}, []interface{}{1, "rgb(90,179,244)"}}, "sequentialminus": []interface{}{[]interface{}{0, "rgb(20,44,66)"}, []interface{}{1, "rgb(90,179,244)"}}}, "colorway": []interface{}{"#F8766D", "#A3A500", "#00BF7D", "#00B0F6", "#E76BF3"}, "font": map[string]interface{}{"color": "rgb(51,51,51)"}, "geo": map[string]interface{}{"bgcolor": "white", "lakecolor": "white", "landcolor": "rgb(237,237,237)", "showlakes": true, "showland": true, "subunitcolor": "white"}, "hoverlabel": map[string]interface{}{"align": "left"}, "hovermode": "closest", "paper_bgcolor": "white", "plot_bgcolor": "rgb(237,237,237)", "polar": map[string]interface{}{"angularaxis": map[string]interface{}{"gridcolor": "white", "linecolor": "white", "showgrid": true, "tickcolor": "rgb(51,51,51)", "ticks": "outside"}, "bgcolor": "rgb(237,237,237)", "radialaxis": map[string]interface{}{"gridcolor": "white", "linecolor": "white", "showgrid": true, "tickcolor": "rgb(51,51,51)", "ticks": "outside"}}, "scene": map[string]interface{}{"xaxis": map[string]interface{}{"backgroundcolor": "rgb(237,237,237)", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "showgrid": true, "tickcolor": "rgb(51,51,51)", "ticks": "outside", "zerolinecolor": "white"}, "yaxis": map[string]interface{}{"backgroundcolor": "rgb(237,237,237)", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "showgrid": true, "tickcolor": "rgb(51,51,51)", "ticks": "outside", "zerolinecolor": "white"}, "zaxis": map[string]interface{}{"backgroundcolor": "rgb(237,237,237)", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "showgrid": true, "tickcolor": "rgb(51,51,51)", "ticks": "outside", "zerolinecolor": "white"}}, "shapedefaults": map[string]interface{}{"fillcolor": "black", "line": map[string]interface{}{"width": 0}, "opacity": 0.3}, "ternary": map[string]interface{}{"aaxis": map[string]interface{}{"gridcolor": "white", "linecolor": "white", "showgrid": true, "tickcolor": "rgb(51,51,51)", "ticks": "outside"}, "baxis": map[string]interface{}{"gridcolor": "white", "linecolor": "white", "showgrid": true, "tickcolor": "rgb(51,51,51)", "ticks": "outside"}, "bgcolor": "rgb(237,237,237)", "caxis": map[string]interface{}{"gridcolor": "white", "linecolor": "white", "showgrid": true, "tickcolor": "rgb(51,51,51)", "ticks": "outside"}}, "xaxis": map[string]interface{}{"automargin": true, "gridcolor": "white", "linecolor": "white", "showgrid": true, "tickcolor": "rgb(51,51,51)", "ticks": "outside", "title": map[string]interface{}{"standoff": 15}, "zerolinecolor": "white"}, "yaxis": map[string]interface{}{"automargin": true, "gridcolor": "white", "linecolor": "white", "showgrid": true, "tickcolor": "rgb(51,51,51)", "ticks": "outside", "title": map[string]interface{}{"standoff": 15}, "zerolinecolor": "white"}}}
)