Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 06360e1

Browse files
upgrades for plotly 3.8
1 parent 6c817e1 commit 06360e1

File tree

8 files changed

+3638
-1813
lines changed

8 files changed

+3638
-1813
lines changed

docs/index.html

+982-258
Large diffs are not rendered by default.

docs/plotly_express/index.html

+37-3
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ <h2 id="returns">Returns</h2>
953953
<p>A <a title="plotly_express.ExpressFigure" href="#plotly_express.ExpressFigure"><code>ExpressFigure</code></a> object.</p></section>
954954
</dd>
955955
<dt id="plotly_express.bar"><code class="name flex">
956-
<span>def <span class="ident">bar</span></span>(<span>data_frame, x=None, y=None, color=None, facet_row=None, facet_col=None, hover_name=None, text=None, error_x=None, error_x_minus=None, error_y=None, error_y_minus=None, animation_frame=None, animation_group=None, category_orders={}, labels={}, color_discrete_sequence=[&#39;#636efa&#39;, &#39;#EF553B&#39;, &#39;#00cc96&#39;, &#39;#ab63fa&#39;, &#39;#19d3f3&#39;, &#39;#e763fa&#39;, &#39;#fecb52&#39;, &#39;#ffa15a&#39;, &#39;#ff6692&#39;, &#39;#b6e880&#39;], color_discrete_map={}, orientation=&#39;v&#39;, log_x=False, log_y=False, range_x=None, range_y=None, title=None, template=&#39;plotly&#39;, width=None, height=600)</span>
956+
<span>def <span class="ident">bar</span></span>(<span>data_frame, x=None, y=None, color=None, facet_row=None, facet_col=None, hover_name=None, text=None, error_x=None, error_x_minus=None, error_y=None, error_y_minus=None, animation_frame=None, animation_group=None, category_orders={}, labels={}, color_discrete_sequence=[&#39;#636efa&#39;, &#39;#EF553B&#39;, &#39;#00cc96&#39;, &#39;#ab63fa&#39;, &#39;#19d3f3&#39;, &#39;#e763fa&#39;, &#39;#fecb52&#39;, &#39;#ffa15a&#39;, &#39;#ff6692&#39;, &#39;#b6e880&#39;], color_discrete_map={}, orientation=&#39;v&#39;, barmode=&#39;relative&#39;, log_x=False, log_y=False, range_x=None, range_y=None, title=None, template=&#39;plotly&#39;, width=None, height=600)</span>
957957
</code></dt>
958958
<dd>
959959
<section class="desc"><p>In a bar plot, each row of <code>data_frame</code> is represented as a rectangular mark.</p>
@@ -997,6 +997,8 @@ <h2 id="arguments">Arguments</h2>
997997
<dd>(dict with string keys and values that are valid CSS-color strings, default <code>{}</code>) Used to override <code>color_discrete_sequence</code> to assign a specific colors to marks corresponding with specific values. Keys in <code>color_discrete_map</code> should be values in the column denoted by <code>color</code>.</dd>
998998
<dt><strong><code>orientation</code></strong></dt>
999999
<dd>(string, one of <code>'h'</code> or <code>'v'</code>) Default is <code>'v'</code>.</dd>
1000+
<dt><strong><code>barmode</code></strong></dt>
1001+
<dd>(string, one of <code>'group'</code> or <code>'relative'</code>. Default is <code>'relative'</code>) In <code>'relative'</code> mode, bars are stacked above zero for positive values and below zero for negative values. In <code>'group'</code> mode, bars are placed beside each other.</dd>
10001002
<dt><strong><code>log_x</code></strong></dt>
10011003
<dd>(boolean, default <code>False</code>) If <code>True</code>, the x-axis is log-scaled in cartesian coordinates.</dd>
10021004
<dt><strong><code>log_y</code></strong></dt>
@@ -1187,7 +1189,7 @@ <h2 id="returns">Returns</h2>
11871189
<p>A <a title="plotly_express.ExpressFigure" href="#plotly_express.ExpressFigure"><code>ExpressFigure</code></a> object.</p></section>
11881190
</dd>
11891191
<dt id="plotly_express.histogram"><code class="name flex">
1190-
<span>def <span class="ident">histogram</span></span>(<span>data_frame, x=None, y=None, color=None, facet_row=None, facet_col=None, animation_frame=None, animation_group=None, category_orders={}, labels={}, color_discrete_sequence=[&#39;#636efa&#39;, &#39;#EF553B&#39;, &#39;#00cc96&#39;, &#39;#ab63fa&#39;, &#39;#19d3f3&#39;, &#39;#e763fa&#39;, &#39;#fecb52&#39;, &#39;#ffa15a&#39;, &#39;#ff6692&#39;, &#39;#b6e880&#39;], color_discrete_map={}, orientation=&#39;v&#39;, barmode=&#39;stack&#39;, barnorm=None, histnorm=None, log_x=False, log_y=False, range_x=None, range_y=None, histfunc=None, cumulative=None, nbins=None, title=None, template=&#39;plotly&#39;, width=None, height=600)</span>
1192+
<span>def <span class="ident">histogram</span></span>(<span>data_frame, x=None, y=None, color=None, facet_row=None, facet_col=None, animation_frame=None, animation_group=None, category_orders={}, labels={}, color_discrete_sequence=[&#39;#636efa&#39;, &#39;#EF553B&#39;, &#39;#00cc96&#39;, &#39;#ab63fa&#39;, &#39;#19d3f3&#39;, &#39;#e763fa&#39;, &#39;#fecb52&#39;, &#39;#ffa15a&#39;, &#39;#ff6692&#39;, &#39;#b6e880&#39;], color_discrete_map={}, orientation=&#39;v&#39;, barmode=&#39;relative&#39;, barnorm=None, histnorm=None, log_x=False, log_y=False, range_x=None, range_y=None, histfunc=None, cumulative=None, nbins=None, title=None, template=&#39;plotly&#39;, width=None, height=600)</span>
11911193
</code></dt>
11921194
<dd>
11931195
<section class="desc"><p>In a histogram, rows of <code>data_frame</code> are grouped together into a rectangular mark to
@@ -1366,7 +1368,8 @@ <h2 id="parameters">Parameters</h2>
13661368
'scatter3d', 'scattercarpet', 'scattergeo',
13671369
'scattergl', 'scattermapbox', 'scatterpolar',
13681370
'scatterpolargl', 'scatterternary', 'splom',
1369-
'streamtube', 'surface', 'table', 'violin']<pre><code>- All remaining properties are passed to the constructor of
1371+
'streamtube', 'sunburst', 'surface', 'table',
1372+
'violin', 'volume', 'waterfall']<pre><code>- All remaining properties are passed to the constructor of
13701373
the specified trace type
13711374

13721375
(e.g. [{'type': 'scatter', ...}, {'type': 'bar, ...}])
@@ -1502,6 +1505,17 @@ <h2 id="parameters">Parameters</h2>
15021505
you can set `false` to disable. Colors provided
15031506
in the trace, using `marker.colors`, are never
15041507
extended.
1508+
extendsunburstcolors
1509+
If `true`, the sunburst slice colors (whether
1510+
given by `sunburstcolorway` or inherited from
1511+
`colorway`) will be extended to three times its
1512+
original length by first repeating every color
1513+
20% lighter then each color 20% darker. This is
1514+
intended to reduce the likelihood of reusing
1515+
the same color when you have many slices, but
1516+
you can set `false` to disable. Colors provided
1517+
in the trace, using `marker.colors`, are never
1518+
extended.
15051519
font
15061520
Sets the global font. Note that fonts used in
15071521
traces and other layout components inherit from
@@ -1653,6 +1667,12 @@ <h2 id="parameters">Parameters</h2>
16531667
like objects. In addition, some objects can be
16541668
hovered on but will not generate spikelines,
16551669
such as scatter fills.
1670+
sunburstcolorway
1671+
Sets the default sunburst slice colors.
1672+
Defaults to the main `colorway` used for trace
1673+
colors. If you specify a new list here it can
1674+
still be extended with lighter and darker
1675+
colors, see `extendsunburstcolors`.
16561676
template
16571677
Default attributes to be applied to the plot.
16581678
This should be a dict with format: `{'layout':
@@ -1742,6 +1762,20 @@ <h2 id="parameters">Parameters</h2>
17421762
another, you might need to set "opacity" to see
17431763
them multiple violins. Has no effect on traces
17441764
that have "width" set.
1765+
waterfallgap
1766+
Sets the gap (in plot fraction) between bars of
1767+
adjacent location coordinates.
1768+
waterfallgroupgap
1769+
Sets the gap (in plot fraction) between bars of
1770+
the same location coordinate.
1771+
waterfallmode
1772+
Determines how bars at the same location
1773+
coordinate are displayed on the graph. With
1774+
"group", the bars are plotted next to one
1775+
another centered around the shared location.
1776+
With "overlay", the bars are plotted over one
1777+
another, you might need to an "opacity" to see
1778+
multiple bars.
17451779
width
17461780
Sets the plot's width (in px).
17471781
xaxis

docs/walkthrough.html

+240-68
Large diffs are not rendered by default.

gallery.ipynb

+1,992-1,233
Large diffs are not rendered by default.

plotly_express/_chart_types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def histogram(
204204
color_discrete_sequence=default_qualitative,
205205
color_discrete_map={},
206206
orientation="v",
207-
barmode="stack",
207+
barmode="relative",
208208
barnorm=None,
209209
histnorm=None,
210210
log_x=False,

plotly_express/_core.py

-2
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,6 @@ def make_trace_kwargs(args, trace_spec, g, mapping_labels, sizeref, color_range)
228228
result[k] = g[v]
229229
mapping_labels.append(("%s=%%{%s}" % (v_label, k), None))
230230
if trace_spec.constructor not in [
231-
go.Box,
232-
go.Violin,
233231
go.Histogram2dContour,
234232
go.Splom,
235233
go.Parcoords,

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
setup(
1616
name="plotly_express",
17-
version="0.1.4",
17+
version="0.1.5",
1818
description="Plotly Express - a high level wrapper for Plotly.py",
1919
long_description=long_description,
2020
long_description_content_type="text/markdown",

walkthrough.ipynb

+385-247
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)