Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ def autodoc_process_bases(app, name, obj, options, bases):
'doc_module': ('matplotlib', 'mpl_toolkits'),
'examples_dirs': example_dirs,
'filename_pattern': '^((?!sgskip).)*$',
'ignore_pattern': r'(__init__|basic_units)\.py',
'gallery_dirs': gallery_dirs,
'image_scrapers': (matplotlib_reduced_latex_scraper, ),
'image_srcset': ["2x"],
Expand All @@ -314,7 +315,7 @@ def autodoc_process_bases(app, name, obj, options, bases):
'thumbnail_size': (320, 224),
'within_subsection_order': gallery_order_subsectionorder,
'capture_repr': (),
'copyfile_regex': r'.*\.rst',
'copyfile_regex': r'(.*\.rst|.*basic_units\.(py|ipynb))',
}

if parse_version(sphinx_gallery.__version__) >= parse_version('0.17.0'):
Expand Down
25 changes: 25 additions & 0 deletions galleries/examples/units/basic_units.ipynb

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why add this?

Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Basic units\n",
"\n",
"This notebook accompanies `basic_units.py`, the helper module used by the units gallery examples."
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
2 changes: 1 addition & 1 deletion galleries/users_explain/axes/axes_units.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@
#
# The support for dates and categories is part of "units" support that is built
# into Matplotlib. This is described at `.matplotlib.units` and in the
# :ref:`basic_units` example.
# :ref:`units examples <units-examples-index>`.
#
# Unit support works by querying the type of data passed to the plotting
# function and dispatching to the first converter in a list that accepts that
Expand Down
Loading