Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legend override_aes #1115

Merged
merged 20 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix wording
  • Loading branch information
MKoroteev-HORIS committed Jun 17, 2024
commit 2f13718279dff9dbacf8044d8585e0ae1f693e92
14 changes: 7 additions & 7 deletions docs/f-24e/legend_override_aes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"metadata": {},
"source": [
"## Legend override_aes\n",
"Now aesthetic parameters of legend keys can be changed without affecting thr rest of the plot. "
"Now aesthetic parameters of legend keys can be changed without affecting the rest of the plot. "
]
},
{
Expand Down Expand Up @@ -170,7 +170,7 @@
{
"data": {
"text/html": [
" <div id=\"SSeEc2\"></div>\n",
" <div id=\"3K1yyx\"></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
" (function() {\n",
" var plotSpec={\n",
Expand Down Expand Up @@ -202,15 +202,15 @@
"}],\n",
"\"metainfo_list\":[]\n",
"};\n",
" var plotContainer = document.getElementById(\"SSeEc2\");\n",
" var plotContainer = document.getElementById(\"3K1yyx\");\n",
" window.letsPlotCall(function() {{\n",
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
" }});\n",
" })();\n",
" </script>"
],
"text/plain": [
"<lets_plot.plot.core.PlotSpec at 0x24f96c42ac0>"
"<lets_plot.plot.core.PlotSpec at 0x2dab508dfa0>"
]
},
"execution_count": 4,
Expand All @@ -235,7 +235,7 @@
{
"data": {
"text/html": [
" <div id=\"X5pusp\"></div>\n",
" <div id=\"XX9Fvs\"></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
" (function() {\n",
" var plotSpec={\n",
Expand Down Expand Up @@ -276,15 +276,15 @@
"}],\n",
"\"metainfo_list\":[]\n",
"};\n",
" var plotContainer = document.getElementById(\"X5pusp\");\n",
" var plotContainer = document.getElementById(\"XX9Fvs\");\n",
" window.letsPlotCall(function() {{\n",
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
" }});\n",
" })();\n",
" </script>"
],
"text/plain": [
"<lets_plot.plot.core.PlotSpec at 0x24f97505970>"
"<lets_plot.plot.core.PlotSpec at 0x2dab56b57c0>"
]
},
"execution_count": 5,
Expand Down
6 changes: 4 additions & 2 deletions python-package/lets_plot/plot/guide.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ def guide_legend(title=None, *, nrow=None, ncol=None, byrow=None, override_aes=N
Number of columns in legend's guide.
byrow : bool, default=True
Type of output: by row, or by column.
override_aes : list
A list of aesthetic parameters that will override the default legend appearance.
override_aes : dict
Dictionary that maps aesthetic parameters to new values, overriding the default legend appearance.
Each value can be a constant applied to all keys or a list that changes particular keys.


Returns
-------
Expand Down