Skip to content

Commit

Permalink
remove forgotten style from notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
Jellevanderwerff authored and YannickJadoul committed Dec 13, 2024
1 parent a470a21 commit 85d52d9
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions docs/source/examples/snippets/plot_single_sequence.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,6 @@
"As you might have noticed in the example above, we passed the ``plot_sequence`` method the argument ``x_axis_label``. This is one of the so-called keyword arguments (``**kwargs``) that can be supplied to most of the plotting functions in this package. For a reference, see e.g. :py:func:`thebeat.helpers.plot_single_sequence`."
]
},
{
"cell_type": "raw",
"metadata": {
"pycharm": {
"name": "#%% md\n"
},
"raw_mimetype": "text/restructuredtext"
},
"source": [
"Now we can adjust the plot a little already by passing the :py:meth:`~thebeat.core.Sequence.plot_sequence` method a ``title``, a `matplotlib style <https://matplotlib.org/stable/gallery/style_sheets/style_sheets_reference.html>`_,\n",
"a ``linewidth``, and an output size of the figure (in inches). How to additionally adjust the plot we learn at the end of this snippet."
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -118,7 +105,7 @@
"outputs": [],
"source": [
"seq = Sequence.generate_isochronous(n_events=5, ioi=500)\n",
"seq.plot_sequence(style='seaborn-v0_8-paper', title='My awesome sequence', linewidth=100, figsize=(4, 2));"
"seq.plot_sequence(title='My awesome sequence', linewidth=100, figsize=(4, 2));"
]
},
{
Expand Down Expand Up @@ -253,7 +240,7 @@
"Plotting onto an existing Axes object\n",
"-------------------------------------\n",
"\n",
"Finally, sometimes it is useful to be able to create a *matplotlib* :class:`~matplotlib.axes.Axes` and :class:`~matplotlib.figure.Figure` object first, and then use one of the plotting functions of *thebeat* to plot onto it. This we can do by passing the existing :class:`~matplotlib.axes.Axes` object to the ``ax`` parameter. Below is an example. The ``tight_layout`` parameter makes sure all the labels are plotted nicely. "
"Finally, sometimes it is useful to be able to create a *matplotlib* :class:`~matplotlib.axes.Axes` and :class:`~matplotlib.figure.Figure` object first, and then use one of the plotting functions of *thebeat* to plot onto it. This we can do by passing the existing :class:`~matplotlib.axes.Axes` object to the ``ax`` parameter. Below is an example. The ``tight_layout`` parameter makes sure all the labels are plotted nicely."
]
},
{
Expand Down

0 comments on commit 85d52d9

Please sign in to comment.