Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cbc1779

Browse files
committed
update plotlyjs for offline
1 parent 98feab6 commit cbc1779

File tree

4 files changed

+621
-277
lines changed

4 files changed

+621
-277
lines changed

CHANGELOG.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,20 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5-
## [2.5.0] - UNRELEASED
5+
## [2.5.0] - 2018-03-12
66
### Fixed
77
- `import plotly.figure_factory` does not fail if `pandas` is not installed. See https://github.com/plotly/plotly.py/pull/958
88
### Added
99
- New parameter `fill_percent` to the `.insert` method for the dashboards API. You can now insert a box into the dashboard layout and specify what proportion of the original container box it will occupy. Run `help(plotly.dashboard_objs.Dashboard.insert)` for more information on `fill_percent`.
1010
### Updated
11+
- Updated `plotly.min.js` to version 1.35.2.
12+
- New features include adding an `automargin` attribute to cartesian axes and a layout `grids` attribute for easy subplot generation.
13+
- See [the plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#1352----2018-03-09) for additional information regarding the updates.
1114
- `plotly.figure_factory.create_choropleth` has changed some of the default plotting options:
12-
- 'offline_mode' param has been removed from call signature
13-
- persistent selection api for the centroid points is automatically enabled. See https://plot.ly/python/reference/#scatter-selected and https://plot.ly/python/reference/#scatter-unselected for details
14-
- FIPS values that appear on hover are 0-padded to ensure they are 5 digits
15-
- for the county lines data `hover_info='none'` by default
15+
- 'offline_mode' param has been removed from call signature.
16+
- Persistent selection api for the centroid points is automatically enabled. See https://plot.ly/python/reference/#scatter-selected and https://plot.ly/python/reference/#scatter-unselected for details
17+
- FIPS values that appear on hover are 0-padded to ensure they are 5 digits.
18+
- `hover_info='none'` is now default for the county lines data.
1619

1720
## [2.4.1] - 2018-02-21
1821
### Fixed
@@ -685,4 +688,4 @@ it does.
685688
```
686689

687690
### Fixed
688-
- The height of the graph in `iplot` respects the figure's height in layout
691+
- The height of the graph in `iplot` respects the figure's height in layout

plotly/graph_objs/graph_objs.py

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -873,15 +873,16 @@ class Bar(PlotlyDict):
873873
"""
874874
Valid attributes for 'bar' at path [] under parents ():
875875
876-
['bardir', 'base', 'basesrc', 'constraintext', 'customdata',
877-
'customdatasrc', 'dx', 'dy', 'error_x', 'error_y', 'hoverinfo',
878-
'hoverinfosrc', 'hoverlabel', 'hovertext', 'hovertextsrc', 'ids',
879-
'idssrc', 'insidetextfont', 'legendgroup', 'marker', 'name', 'offset',
880-
'offsetsrc', 'opacity', 'orientation', 'outsidetextfont', 'r', 'rsrc',
881-
'selected', 'selectedpoints', 'showlegend', 'stream', 't', 'text',
882-
'textfont', 'textposition', 'textpositionsrc', 'textsrc', 'tsrc',
883-
'type', 'uid', 'unselected', 'visible', 'width', 'widthsrc', 'x', 'x0',
884-
'xaxis', 'xcalendar', 'xsrc', 'y', 'y0', 'yaxis', 'ycalendar', 'ysrc']
876+
['bardir', 'base', 'basesrc', 'cliponaxis', 'constraintext',
877+
'customdata', 'customdatasrc', 'dx', 'dy', 'error_x', 'error_y',
878+
'hoverinfo', 'hoverinfosrc', 'hoverlabel', 'hovertext', 'hovertextsrc',
879+
'ids', 'idssrc', 'insidetextfont', 'legendgroup', 'marker', 'name',
880+
'offset', 'offsetsrc', 'opacity', 'orientation', 'outsidetextfont',
881+
'r', 'rsrc', 'selected', 'selectedpoints', 'showlegend', 'stream', 't',
882+
'text', 'textfont', 'textposition', 'textpositionsrc', 'textsrc',
883+
'tsrc', 'type', 'uid', 'unselected', 'visible', 'width', 'widthsrc',
884+
'x', 'x0', 'xaxis', 'xcalendar', 'xsrc', 'y', 'y0', 'yaxis',
885+
'ycalendar', 'ysrc']
885886
886887
Run `<bar-object>.help('attribute')` on any of the above.
887888
'<bar-object>' is the object at []
@@ -1132,9 +1133,8 @@ class ErrorY(PlotlyDict):
11321133
Valid attributes for 'error_y' at path [] under parents ():
11331134
11341135
['array', 'arrayminus', 'arrayminussrc', 'arraysrc', 'color',
1135-
'copy_ystyle', 'copy_zstyle', 'opacity', 'symmetric', 'thickness',
1136-
'traceref', 'tracerefminus', 'type', 'value', 'valueminus', 'visible',
1137-
'width']
1136+
'copy_zstyle', 'opacity', 'symmetric', 'thickness', 'traceref',
1137+
'tracerefminus', 'type', 'value', 'valueminus', 'visible', 'width']
11381138
11391139
Run `<error_y-object>.help('attribute')` on any of the above.
11401140
'<error_y-object>' is the object at []
@@ -1148,9 +1148,8 @@ class ErrorZ(PlotlyDict):
11481148
Valid attributes for 'error_z' at path [] under parents ():
11491149
11501150
['array', 'arrayminus', 'arrayminussrc', 'arraysrc', 'color',
1151-
'copy_ystyle', 'copy_zstyle', 'opacity', 'symmetric', 'thickness',
1152-
'traceref', 'tracerefminus', 'type', 'value', 'valueminus', 'visible',
1153-
'width']
1151+
'opacity', 'symmetric', 'thickness', 'traceref', 'tracerefminus',
1152+
'type', 'value', 'valueminus', 'visible', 'width']
11541153
11551154
Run `<error_z-object>.help('attribute')` on any of the above.
11561155
'<error_z-object>' is the object at []
@@ -1459,7 +1458,7 @@ class Layout(PlotlyDict):
14591458
['angularaxis', 'annotations', 'autosize', 'bargap', 'bargroupgap',
14601459
'barmode', 'barnorm', 'boxgap', 'boxgroupgap', 'boxmode', 'calendar',
14611460
'colorway', 'datarevision', 'direction', 'dragmode', 'font', 'geo',
1462-
'height', 'hiddenlabels', 'hiddenlabelssrc', 'hidesources',
1461+
'grid', 'height', 'hiddenlabels', 'hiddenlabelssrc', 'hidesources',
14631462
'hoverdistance', 'hoverlabel', 'hovermode', 'images', 'legend',
14641463
'mapbox', 'margin', 'orientation', 'paper_bgcolor', 'plot_bgcolor',
14651464
'polar', 'radialaxis', 'scene', 'separators', 'shapes', 'showlegend',
@@ -1934,18 +1933,19 @@ class XAxis(PlotlyDict):
19341933
"""
19351934
Valid attributes for 'xaxis' at path [] under parents ():
19361935
1937-
['anchor', 'autorange', 'autotick', 'backgroundcolor', 'calendar',
1938-
'categoryarray', 'categoryarraysrc', 'categoryorder', 'color',
1939-
'constrain', 'constraintoward', 'domain', 'dtick', 'exponentformat',
1940-
'fixedrange', 'gridcolor', 'gridwidth', 'hoverformat', 'layer',
1941-
'linecolor', 'linewidth', 'mirror', 'nticks', 'overlaying', 'position',
1942-
'range', 'rangemode', 'rangeselector', 'rangeslider', 'scaleanchor',
1943-
'scaleratio', 'separatethousands', 'showaxeslabels', 'showbackground',
1944-
'showexponent', 'showgrid', 'showline', 'showspikes', 'showticklabels',
1945-
'showtickprefix', 'showticksuffix', 'side', 'spikecolor', 'spikedash',
1946-
'spikemode', 'spikesides', 'spikesnap', 'spikethickness', 'tick0',
1947-
'tickangle', 'tickcolor', 'tickfont', 'tickformat', 'tickformatstops',
1948-
'ticklen', 'tickmode', 'tickprefix', 'ticks', 'ticksuffix', 'ticktext',
1936+
['anchor', 'automargin', 'autorange', 'autotick', 'backgroundcolor',
1937+
'calendar', 'categoryarray', 'categoryarraysrc', 'categoryorder',
1938+
'color', 'constrain', 'constraintoward', 'domain', 'dtick',
1939+
'exponentformat', 'fixedrange', 'gridcolor', 'gridwidth',
1940+
'hoverformat', 'layer', 'linecolor', 'linewidth', 'mirror', 'nticks',
1941+
'overlaying', 'position', 'range', 'rangemode', 'rangeselector',
1942+
'rangeslider', 'scaleanchor', 'scaleratio', 'separatethousands',
1943+
'showaxeslabels', 'showbackground', 'showexponent', 'showgrid',
1944+
'showline', 'showspikes', 'showticklabels', 'showtickprefix',
1945+
'showticksuffix', 'side', 'spikecolor', 'spikedash', 'spikemode',
1946+
'spikesides', 'spikesnap', 'spikethickness', 'tick0', 'tickangle',
1947+
'tickcolor', 'tickfont', 'tickformat', 'tickformatstops', 'ticklen',
1948+
'tickmode', 'tickprefix', 'ticks', 'ticksuffix', 'ticktext',
19491949
'ticktextsrc', 'tickvals', 'tickvalssrc', 'tickwidth', 'title',
19501950
'titlefont', 'type', 'visible', 'zeroline', 'zerolinecolor',
19511951
'zerolinewidth']
@@ -1974,18 +1974,18 @@ class YAxis(PlotlyDict):
19741974
"""
19751975
Valid attributes for 'yaxis' at path [] under parents ():
19761976
1977-
['anchor', 'autorange', 'autotick', 'backgroundcolor', 'calendar',
1978-
'categoryarray', 'categoryarraysrc', 'categoryorder', 'color',
1979-
'constrain', 'constraintoward', 'domain', 'dtick', 'exponentformat',
1980-
'fixedrange', 'gridcolor', 'gridwidth', 'hoverformat', 'layer',
1981-
'linecolor', 'linewidth', 'mirror', 'nticks', 'overlaying', 'position',
1982-
'range', 'rangemode', 'scaleanchor', 'scaleratio', 'separatethousands',
1983-
'showaxeslabels', 'showbackground', 'showexponent', 'showgrid',
1984-
'showline', 'showspikes', 'showticklabels', 'showtickprefix',
1985-
'showticksuffix', 'side', 'spikecolor', 'spikedash', 'spikemode',
1986-
'spikesides', 'spikesnap', 'spikethickness', 'tick0', 'tickangle',
1987-
'tickcolor', 'tickfont', 'tickformat', 'tickformatstops', 'ticklen',
1988-
'tickmode', 'tickprefix', 'ticks', 'ticksuffix', 'ticktext',
1977+
['anchor', 'automargin', 'autorange', 'autotick', 'backgroundcolor',
1978+
'calendar', 'categoryarray', 'categoryarraysrc', 'categoryorder',
1979+
'color', 'constrain', 'constraintoward', 'domain', 'dtick',
1980+
'exponentformat', 'fixedrange', 'gridcolor', 'gridwidth',
1981+
'hoverformat', 'layer', 'linecolor', 'linewidth', 'mirror', 'nticks',
1982+
'overlaying', 'position', 'range', 'rangemode', 'scaleanchor',
1983+
'scaleratio', 'separatethousands', 'showaxeslabels', 'showbackground',
1984+
'showexponent', 'showgrid', 'showline', 'showspikes', 'showticklabels',
1985+
'showtickprefix', 'showticksuffix', 'side', 'spikecolor', 'spikedash',
1986+
'spikemode', 'spikesides', 'spikesnap', 'spikethickness', 'tick0',
1987+
'tickangle', 'tickcolor', 'tickfont', 'tickformat', 'tickformatstops',
1988+
'ticklen', 'tickmode', 'tickprefix', 'ticks', 'ticksuffix', 'ticktext',
19891989
'ticktextsrc', 'tickvals', 'tickvalssrc', 'tickwidth', 'title',
19901990
'titlefont', 'type', 'visible', 'zeroline', 'zerolinecolor',
19911991
'zerolinewidth']

0 commit comments

Comments
 (0)