You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 2.2.2/_downloads/bar_unit_demo.ipynb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@
15
15
"cell_type": "markdown",
16
16
"metadata": {},
17
17
"source": [
18
-
"\n# Group barchart with units\n\n\nThis is the same example as:doc:`the barchart demo<../api/barchart>`\nin centimeters.\n\n.. only:: builder_html\n\n This example requires :download:`basic_units.py <basic_units.py>`\n\n"
18
+
"\n# Group barchart with units\n\n\nThis is the same example as\n:doc:`the barchart demo<../lines_bars_and_markers/barchart>` in centimeters.\n\n.. only:: builder_html\n\n This example requires :download:`basic_units.py <basic_units.py>`\n\n"
Copy file name to clipboardExpand all lines: 2.2.2/_downloads/constrainedlayout_guide.ipynb
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@
26
26
},
27
27
"outputs": [],
28
28
"source": [
29
-
"# sphinx_gallery_thumbnail_number = 18\n\n#import matplotlib\n#matplotlib.use('Qt5Agg')\n\nimport warnings\n\nimport matplotlib.pyplot as plt\nimport numpy as np\nimport matplotlib.gridspec as gridspec\n\nimport matplotlib._layoutbox as layoutbox\n\nplt.rcParams['savefig.facecolor'] = \"0.8\"\nplt.rcParams['figure.figsize'] = 4.5, 4.\n\n\ndef example_plot(ax, fontsize=12, nodec=False):\n ax.plot([1, 2])\n\n ax.locator_params(nbins=3)\n if not nodec:\n ax.set_xlabel('x-label', fontsize=fontsize)\n ax.set_ylabel('y-label', fontsize=fontsize)\n ax.set_title('Title', fontsize=fontsize)\n else:\n ax.set_xticklabels('')\n ax.set_yticklabels('')\n\n\nfig, ax = plt.subplots()\nexample_plot(ax, fontsize=24)"
29
+
"# sphinx_gallery_thumbnail_number = 18\n\n#import matplotlib\n#matplotlib.use('Qt5Agg')\n\nimport warnings\n\nimport matplotlib.pyplot as plt\nimport numpy as np\nimport matplotlib.colors as mcolors\nimport matplotlib.gridspec as gridspec\n\nimport matplotlib._layoutbox as layoutbox\n\nplt.rcParams['savefig.facecolor'] = \"0.8\"\nplt.rcParams['figure.figsize'] = 4.5, 4.\n\n\ndef example_plot(ax, fontsize=12, nodec=False):\n ax.plot([1, 2])\n\n ax.locator_params(nbins=3)\n if not nodec:\n ax.set_xlabel('x-label', fontsize=fontsize)\n ax.set_ylabel('y-label', fontsize=fontsize)\n ax.set_title('Title', fontsize=fontsize)\n else:\n ax.set_xticklabels('')\n ax.set_yticklabels('')\n\n\nfig, ax = plt.subplots()\nexample_plot(ax, fontsize=24)"
30
30
]
31
31
},
32
32
{
@@ -87,7 +87,7 @@
87
87
"cell_type": "markdown",
88
88
"metadata": {},
89
89
"source": [
90
-
"Colorbars\n=========\n\nIf you create a colorbar with the :func:`~matplotlib.pyplot.colorbar`\ncommand you need to make room for it. ``constrained_layout`` does this\nautomatically. Note that if you specify ``use_gridspec=True`` it will be\nignored because this option is made for improving the layout via\n``tight_layout``.\n\n"
90
+
"Colorbars\n=========\n\nIf you create a colorbar with the :func:`~matplotlib.pyplot.colorbar`\ncommand you need to make room for it. ``constrained_layout`` does this\nautomatically. Note that if you specify ``use_gridspec=True`` it will be\nignored because this option is made for improving the layout via\n``tight_layout``.\n\n<div class=\"alert alert-info\"><h4>Note</h4><p>For the `pcolormesh` kwargs (``pc_kwargs``) we use a dictionary.\n Below we will assign one colorbar to a number of axes each containing\n a `ScalarMappable`; specifying the norm and colormap ensures\n the colorbar is accurate for all the axes.</p></div>\n\n"
0 commit comments