Skip to content

Commit

Permalink
Merge branch 'master' into align_ylabels
Browse files Browse the repository at this point in the history
  • Loading branch information
jnothman committed Dec 31, 2023
2 parents fde7907 + b380d07 commit 6256c87
Show file tree
Hide file tree
Showing 13 changed files with 40 additions and 35 deletions.
2 changes: 2 additions & 0 deletions doc/conf.py
Expand Up @@ -30,6 +30,7 @@
)

import sphinx_rtd_theme # noqa
from sphinx_gallery.sorting import ExampleTitleSortKey # noqa
from upsetplot import __version__ as release # noqa


Expand Down Expand Up @@ -284,4 +285,5 @@
# path where to save gallery generated examples
"gallery_dirs": "auto_examples",
"backreferences_dir": "_modules",
"within_subsection_order": ExampleTitleSortKey,
}
6 changes: 3 additions & 3 deletions examples/plot_customize_after_plot.py
@@ -1,7 +1,7 @@
"""
=======================
Customizing axis labels
=======================
===============================
Design: Customizing axis labels
===============================
This example illustrates how the return value of the plot method can be used
to customize aspects of the plot, such as axis labels, legend position, etc.
Expand Down
8 changes: 4 additions & 4 deletions examples/plot_diabetes.py
@@ -1,7 +1,7 @@
"""
==================================
Above-average features in Diabetes
==================================
==========================================
Data Vis: Feature distribution in Diabetes
==========================================
Explore above-average attributes in the Diabetes dataset (Efron et al, 2004).
Expand Down Expand Up @@ -73,5 +73,5 @@
upset.add_catplot(value="progression", kind="strip", color="blue")
upset.add_catplot(value="bmi", kind="strip", color="black")
upset.plot()
plt.title("UpSet with catplots, for orientation='vertical'")
plt.suptitle("UpSet with catplots, for orientation='vertical'")
plt.show()
6 changes: 3 additions & 3 deletions examples/plot_discrete.py
@@ -1,7 +1,7 @@
"""
=================================================
Plotting discrete variables as stacked bar charts
=================================================
===========================================================
Data Vis: Plotting discrete variables as stacked bar charts
===========================================================
Currently, a somewhat contrived example of `add_stacked_bars`.
"""
Expand Down
6 changes: 3 additions & 3 deletions examples/plot_generated.py
@@ -1,7 +1,7 @@
"""
============================
Plotting with generated data
============================
===================================
Basic: Plotting with generated data
===================================
This example illustrates basic plotting functionality using generated data.
"""
Expand Down
6 changes: 3 additions & 3 deletions examples/plot_hide.py
@@ -1,7 +1,7 @@
"""
======================================
Hiding subsets based on size or degree
======================================
=============================================
Basic: Hiding subsets based on size or degree
=============================================
This illustrates the use of ``min_subset_size``, ``max_subset_size``,
``min_degree`` or ``max_degree``.
Expand Down
6 changes: 3 additions & 3 deletions examples/plot_highlight.py
@@ -1,7 +1,7 @@
"""
=============================
Highlighting selected subsets
=============================
=======================================
Data Vis: Highlighting selected subsets
=======================================
Demonstrates use of the `style_subsets` method to mark some subsets as
different.
Expand Down
6 changes: 3 additions & 3 deletions examples/plot_highlight_categories.py
@@ -1,7 +1,7 @@
"""
================================
Highlighting selected categories
================================
==========================================
Data Vis: Highlighting selected categories
==========================================
Demonstrates use of the `style_categories` method to mark some
categories differently.
Expand Down
6 changes: 3 additions & 3 deletions examples/plot_missingness.py
@@ -1,7 +1,7 @@
"""
=======================================
Plot the distribution of missing values
=======================================
==============================================
Basic: Plot the distribution of missing values
==============================================
UpSet plots are often used to show which variables are missing together.
Expand Down
6 changes: 3 additions & 3 deletions examples/plot_sizing.py
@@ -1,7 +1,7 @@
"""
========================================
Customising element size and figure size
========================================
================================================
Design: Customising element size and figure size
================================================
This example illustrates controlling sizing within an UpSet plot.
"""
Expand Down
6 changes: 3 additions & 3 deletions examples/plot_theming.py
@@ -1,7 +1,7 @@
"""
====================
Changing Plot Colors
====================
============================
Design: Changing Plot Colors
============================
This example illustrates use of matplotlib and upsetplot color settings, aside
from matplotlib style sheets, which can control colors as well as grid lines,
Expand Down
6 changes: 3 additions & 3 deletions examples/plot_vertical.py
@@ -1,7 +1,7 @@
"""
====================
Vertical orientation
====================
===========================
Basic: Vertical orientation
===========================
This illustrates the effect of orientation='vertical'.
"""
Expand Down
5 changes: 4 additions & 1 deletion upsetplot/plotting.py
Expand Up @@ -256,7 +256,10 @@ class UpSet:
Setting to 0 is handled.
totals_plot_elements : int
The totals plot should be large enough to fit this many matrix
elements. Use totals_plot_elements=0 to disable the totals plot.
elements. Set to 0 to disable the totals plot.
.. versionchanged:: 0.9
Setting to 0 is handled.
show_counts : bool or str, default=False
Whether to label the intersection size bars with the cardinality
of the intersection. When a string, this formats the number.
Expand Down

0 comments on commit 6256c87

Please sign in to comment.