Skip to content

Commit

Permalink
Add text about how to stop axis linking
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Jun 30, 2023
1 parent eb390a4 commit 5038db9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions examples/tutorial/03_Composing_Plots.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@
"metadata": {},
"outputs": [],
"source": [
"(weekly_mean_magnitude_plot + weekly_count_plot).cols(1)"
"plots = (weekly_mean_magnitude_plot + weekly_count_plot).cols(1)\n",
"plots"
]
},
{
Expand All @@ -177,7 +178,9 @@
"source": [
"Try zooming in and out (including on the axes) to explore the linking between the plots above.\n",
"\n",
"Interestingly, there are three clear peaks in the monthly counts, and two of them correspond to sudden dips in the mean magnitude, while the third corresponds to a peak in the mean magnitude."
"Interestingly, there are three clear peaks in the monthly counts, and two of them correspond to sudden dips in the mean magnitude, while the third corresponds to a peak in the mean magnitude.\n",
"\n",
"To stop axis linking, you can use `plots.opts(shared_axes=False)`. This will make all axes independent of each other."
]
},
{
Expand Down

0 comments on commit 5038db9

Please sign in to comment.