1
0
forked from pool/python-plotly

Compare commits

...

81 Commits

Author SHA256 Message Date
Ana Guerrero
4ce746a58c Accepting request 1228967 from devel:languages:python:numeric
- Skip scikit-image tests on python313: not available yet

OBS-URL: https://build.opensuse.org/request/show/1228967
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=44
2024-12-08 10:37:33 +00:00
2e001986b4 - Skip scikit-image tests on python313: not available yet
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=73
2024-12-06 22:17:52 +00:00
Ana Guerrero
1a2d99f41a Accepting request 1226899 from devel:languages:python:numeric
- Update to 5.24.1
  * Updated Plotly.js from version 2.35.0 to version 3.0.0-rc.0.
    See the plotly.js CHANGELOG for more information.
- Release 5.24.0
  ## Added
  * New px functions for maps: scatter_map, line_map,
    choropleth_map, and density_map.
  ## Updated
  * Updated Plotly.js from version 2.34.0 to version 2.35.0. See
    the plotly.js CHANGELOG for more information. These changes are
    reflected in the auto-generated plotly.graph_objects module.
    Notable changes include:
    - Add new traces: scattermap, choroplethmap and densitymap and
      map subplots which use maplibre to render maps [#7015, #7060,
      #7085, #7088, #7090, #7092, #7094, #7134]
    - Deprecate mapbox traces and mapbox subplot [#7087]
  * Fixed a bug in integer validation of arrays that threw an error
    when an array contained a mix of strings and integers.
  * Fixed a bug in JupyterLab >= 4 and Jupyter Notebook >= 7 that
    caused latex to not render in plotly charts.
  * Use modern native ES6 import to load plotly.js bundle instead
    of requirejs which is no longer under active development
- Release 5.23.0
  ## Updated
  *  Updated Plotly.js from version 2.32.0 to version 2.34.0. See
     the plotly.js CHANGELOG for more information. These changes
     are reflected in the auto-generated plotly.graph_objects
     module. Notable changes include:
    - Add subtitle attribute to layout.title to enable adding
      subtitles to plots [#7012]

OBS-URL: https://build.opensuse.org/request/show/1226899
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=43
2024-11-27 21:14:57 +00:00
e8f2a2e71a - Do not depend on jupyter metapackge for tests
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=71
2024-11-27 12:54:01 +00:00
b22a92f46d - Update to 5.24.1
* Updated Plotly.js from version 2.35.0 to version 3.0.0-rc.0.
    See the plotly.js CHANGELOG for more information.
- Release 5.24.0
  ## Added
  * New px functions for maps: scatter_map, line_map,
    choropleth_map, and density_map.
  ## Updated
  * Updated Plotly.js from version 2.34.0 to version 2.35.0. See
    the plotly.js CHANGELOG for more information. These changes are
    reflected in the auto-generated plotly.graph_objects module.
    Notable changes include:
    - Add new traces: scattermap, choroplethmap and densitymap and
      map subplots which use maplibre to render maps [#7015, #7060,
      #7085, #7088, #7090, #7092, #7094, #7134]
    - Deprecate mapbox traces and mapbox subplot [#7087]
  * Fixed a bug in integer validation of arrays that threw an error
    when an array contained a mix of strings and integers.
  * Fixed a bug in JupyterLab >= 4 and Jupyter Notebook >= 7 that
    caused latex to not render in plotly charts.
  * Use modern native ES6 import to load plotly.js bundle instead
    of requirejs which is no longer under active development
- Release 5.23.0
  ## Updated
  *  Updated Plotly.js from version 2.32.0 to version 2.34.0. See
     the plotly.js CHANGELOG for more information. These changes
     are reflected in the auto-generated plotly.graph_objects
     module. Notable changes include:
    - Add subtitle attribute to layout.title to enable adding
      subtitles to plots [#7012]

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=70
2024-11-27 12:38:13 +00:00
Ana Guerrero
08000107ba Accepting request 1188407 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1188407
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=42
2024-07-19 13:28:15 +00:00
Ana Guerrero
a3cc6ebad4 Accepting request 1178364 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1178364
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=41
2024-06-04 10:51:28 +00:00
a8b1c5659d Accepting request 1178183 from home:bnavigator:branches:devel:languages:python:numeric
- Build from github archive with obs-service-node_modules and
  local-npm-registry
- Add plotly-pr4622-np2.patch gh#plotly/plotly.py#4622

OBS-URL: https://build.opensuse.org/request/show/1178183
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=65
2024-06-03 16:21:01 +00:00
Ana Guerrero
e8598d9970 Accepting request 1177151 from devel:languages:python:numeric
Forwarded request #1176533 from bnavigator

- Update to 5.22.0
    * Updated Plotly.js from version 2.31.1 to version 2.32.0. See
      the plotly.js CHANGELOG for more information. These changes are
      reflected in the auto-generated plotly.graph_objects module.
      Notable changes include:
    * Add "bold" weight, "italic" style and "small-caps" variant
      options to fonts [#6956]
    * Fix applying autotickangles on axes with showdividers as well
      as cases where tickson is set to "boundaries" [#6967], with
      thanks to @my-tien for the contribution!
    * Fix positioning of multi-line axis titles with standoff
      [#6970], with thanks to @my-tien for the contribution!
  - Release 5.21.0
    * Updated Plotly.js from version 2.30.0 to version 2.31.1. See
      the plotly.js CHANGELOG for more information. These changes are
      reflected in the auto-generated plotly.graph_objects module.
      Notable changes include:
    * Add zorder attribute to various cartesian traces for
      controlling stacking order of SVG traces drawn into a subplot
      [#6918, #6953], This feature was anonymously sponsored: thank
      you to our sponsor!
    * Add "between" option to shape layer for placing them above grid
      lines and below traces [#6927], with thanks to @my-tien for the
      contribution!
    * Add "raw" sizemode to cone trace [#6938]
    * Add layout.hoversubplots to enable hover effects across
      multiple cartesian suplots sharing one axis [#6947, #6950]
    * Fixed orjson loading issue [#4562]
  - Release 5.20.0
    * Updated Plotly.js from version 2.29.1 to version 2.30.0. See

OBS-URL: https://build.opensuse.org/request/show/1177151
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=40
2024-05-28 15:29:00 +00:00
cf0e4013d1 Accepting request 1176533 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 5.22.0
  * Updated Plotly.js from version 2.31.1 to version 2.32.0. See
    the plotly.js CHANGELOG for more information. These changes are
    reflected in the auto-generated plotly.graph_objects module.
    Notable changes include:
  * Add "bold" weight, "italic" style and "small-caps" variant
    options to fonts [#6956]
  * Fix applying autotickangles on axes with showdividers as well
    as cases where tickson is set to "boundaries" [#6967], with
    thanks to @my-tien for the contribution!
  * Fix positioning of multi-line axis titles with standoff
    [#6970], with thanks to @my-tien for the contribution!
- Release 5.21.0
  * Updated Plotly.js from version 2.30.0 to version 2.31.1. See
    the plotly.js CHANGELOG for more information. These changes are
    reflected in the auto-generated plotly.graph_objects module.
    Notable changes include:
  * Add zorder attribute to various cartesian traces for
    controlling stacking order of SVG traces drawn into a subplot
    [#6918, #6953], This feature was anonymously sponsored: thank
    you to our sponsor!
  * Add "between" option to shape layer for placing them above grid
    lines and below traces [#6927], with thanks to @my-tien for the
    contribution!
  * Add "raw" sizemode to cone trace [#6938]
  * Add layout.hoversubplots to enable hover effects across
    multiple cartesian suplots sharing one axis [#6947, #6950]
  * Fixed orjson loading issue [#4562]
- Release 5.20.0
  * Updated Plotly.js from version 2.29.1 to version 2.30.0. See

OBS-URL: https://build.opensuse.org/request/show/1176533
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=63
2024-05-27 14:14:25 +00:00
Ana Guerrero
0f87e7a7a4 Accepting request 1156902 from devel:languages:python:numeric
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1156902
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=39
2024-03-11 14:34:54 +00:00
Ana Guerrero
29d30957d3 Accepting request 1154607 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1154607
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=38
2024-03-04 20:25:34 +00:00
2f6f41ed13 - update to 5.17.0:
* Improved json docstrings, added `BasePlotlyType.to_json()`
    method
  * Updated Plotly.js from version 2.25.2 to version 2.26.0. See
    the plotly.js CHANGELOG for more information. These changes
    are reflected in the auto-generated `plotly.graph_objects`
    module. Notable changes include:
  * Add "min", "max", "min reversed" and "max reversed" autorange
    options and handle partial ranges (i.e. one end being null),
    add `autorangeoptions` (`clipmin`, `clipmax`, `minallowed`,
    `maxallowed`, `include`) as well as `minallowed` and
    `maxallowed` to cartesian, gl3d and radial axes
  * Add [n]-sigma (std deviations) box plots as an alternative to
    quartiles
  * Add "top left" & "top center" side options to legend title
  * Add "false" option to `scaleanchor` to allow removing a
    constraint that is set by default
  * Fixed two issues with px.imshow: [#4330] when facet_col is an
    earlier dimension than animation_frame for xarrays and
    [#4329] when facet_col has string coordinates in xarrays

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=60
2024-03-04 09:45:54 +00:00
feb75e5e37 Accepting request 1154282 from home:bnavigator:branches:devel:languages:python:numeric
- Skip python39: no xarray anymore

OBS-URL: https://build.opensuse.org/request/show/1154282
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=59
2024-03-04 09:22:24 +00:00
613cb0c614 - update to 5.16.1:
* Fixed issue with necessary columns from complex arguments
    dropped when interchanging dataframes
  * Updated Plotly.js from version 2.24.1 to version 2.25.2. See
    the plotly.js CHANGELOG for more information. These changes
    are reflected in the auto-generated `plotly.graph_objects`
    module. Notable changes include:
  * Add "Equal Earth" projection to geo subplots [#6670],
  * Add options to include legends for shapes and `newshape`
  * `px` methods now accept data-frame-like objects that support
    a dataframe interchange protocol, such as polars, vaex, modin
    etc. This protocol has priority on `to_pandas` call, but will
    only be used if pandas>=2.0.2 is installed in the
    environment.
  * `px` methods now accept data-frame-like objects that support
    a `toPandas()` method, such as Spark DataFrames, or a
    `to_pandas_df()` method, such as Vaex DataFrames.
  * Fixed Pandas performance warning issue caused by multiple
    `frame.insert`

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=58
2024-03-01 10:08:03 +00:00
fd6b1ca16f - update to 5.15.0:
* Updated Plotly.js from version 2.20.0 to version 2.24.1. See
    the plotly.js CHANGELOG for more information. Notable changes
    include:
  * Add pattern to pie, funnelarea, sunburst, icicle and treemap
    traces [#6601, #6619, #6622, #6626, #6627, #6628, #6629],
    with thanks to @thierryVergult for the contribution!
  * Add `texttemplate` to shape.label for parametric shapes i.e.
    line, rect and circle [#6527],
  * Add strict option to custom bundle command [#6557],
  * Add `legend` references to traces and `legend2`, `legend3`,
    etc. to layout,
  * also add `visible` to legend i.e. to allow positioning
    multiple legends on a graph [#6535],
  * Add `legend.xref` and `legend.yref` to enable container-
    referenced positioning of legends [#6589], with thanks to
    Gamma Technologies for sponsoring the related development.
  * Add `colorbar.xref` and `colorbar.yref` to enable container-
    referenced positioning of colorbars [#6593], with thanks to
    Gamma Technologies for sponsoring the related development.
  * `px` methods now accept data-frame-like objects that support
    a `to_pandas()` method, such as polars, cudf, vaex etc
  * Fixed another compatibility issue with Pandas 2.0, just
    affecting `px.*(line_close=True)`
  * Empty pandas dataframe with facet row/column set no longer
    fails
  * Added some rounding to the `make_subplots` function to handle
    situations where the user-input specs cause the domain to
    exceed 1 by small amounts
  * Sanitize JSON output to prevent an XSS vector when graphs are

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=57
2024-03-01 10:06:06 +00:00
7c89e16b08 Accepting request 1091744 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1091744
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=37
2023-06-11 17:54:26 +00:00
Steve Kowalik
7fc6409913 Accepting request 1091723 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 5.14.1
  * Fixed compatibility issue with Pandas 2.0 [#4103]
- Release 5.14.0
  * Updated Plotly.js from version 2.18.2 to version 2.20.0. See
    the plotly.js CHANGELOG for more information. Notable changes
    include:
  * Add title.automargin to enable automatic top and bottom
    margining for both container and paper referenced titles
    [#6428], with thanks to Gamma Technologies for sponsoring the
    related development.
  * Add label attribute to shapes [#6454], with thanks to the
    Volkswagen Center of Excellence for Battery Systems for
    sponsoring development!
  * Add labelalias to various axes namely cartesian, gl3d, polar,
    smith, ternary, carpet, indicator and colorbar [#6481], this
    feature was anonymously sponsored: thank you to our sponsor!
  * Key errors no longer precalculated when performing updates on
    plots [#4101]
  * Fixed an issue with characters displaying incorrectly, by
    adding charset="utf-8" to scripts in to_html [#4114]
  * Added packaging to install requirements, fixing a No module
    named 'packaging error on Python 3.6 [#4113]
  * Added option to allow passing a column name as a str in
    hover_data and custom_data in plotly.express [4083]

OBS-URL: https://build.opensuse.org/request/show/1091723
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=55
2023-06-09 05:08:43 +00:00
c8d44afad4 Accepting request 1074796 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1074796
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=36
2023-03-28 15:50:17 +00:00
30474fb64d Accepting request 1074749 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 5.13.1
  * Updated Plotly.js to from version 2.18.0 to version 2.18.2. See
    the plotly.js CHANGELOG for more information. These changes are
    reflected in the auto-generated plotly.graph_objects module.
  * Updated distutils.Version to packaging.Version #3897] and
    #4055]
- Release 5.13.0
  * Updated Plotly.js to from version 2.17.1 to version 2.18.0. See
    the plotly.js CHANGELOG for more information. Notable changes
    include:
  * Add sync tickmode option [#6356, #6443], with thanks to
    @filipesantiagoAM and @VictorBezak for the contribution!
  * Build process now uses Node 18.x and version 2 lockfile (should
    be an invisible change for users) [#4034]
  * write_html() now explicitly encodes output as UTF-8 because
    Plotly.js' bundle contains such characters [#4021] and [#4022]
  * fixed iframe renderer regression from 5.12 and also fixed error
    when this renderer was used in the very first cell in a
    notebook [#4036]
- Release 5.12.0
  * Support for ipywidgets 8 [#3930]
  * Updated Plotly.js to from version 2.16.1 to version 2.17.1. See
    the plotly.js CHANGELOG for more information. Notable changes
    include:
  * Add shift and autoshift to cartesian y axes to help avoid
    overlapping of multiple axes [#6334], with thanks to Gamma
    Technologies for sponsoring the related development!
  * Introduce group attributes for scatter trace i.e.
    alignmentgroup, offsetgroup, scattermode and scattergap
    [#6381], this feature was anonymously sponsored: thank you to
    our sponsor!
  * Add marker.cornerradius attribute to treemap trace [#6351]
  * Fixed the usage of some deprecated NumPy types which were
    removed in NumPy 1.24 [#3997]
  * Fixed bug for trendlines with datetime axes [#3683]
  * marker.angle attribute now accepts iterables where appropriate
    [#4013]
  * selector=0 now correctly returns the first trace in
    .select_traces() and related methods [#3817]
- Drop patches merged upstream
  * plotly-fix-sources-np1.24.patch
  * plotly-fix-tests-np1.24.patch

OBS-URL: https://build.opensuse.org/request/show/1074749
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=53
2023-03-27 23:03:46 +00:00
396aedd6db Accepting request 1045230 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1045230
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=35
2022-12-24 18:40:46 +00:00
3ff6df948c Accepting request 1045226 from home:bnavigator:branches:devel:languages:python:numeric
- Update to version 5.11.0
  * Add clustering options to scattermapbox [#5827], with thanks to
    @elben10 for the contribution!
  * Add bounds to mapbox suplots [6339]
  * Add angle, angleref and standoff to marker and add backoff to
    line; also introduce new arrow symbols to facilitate drawing
    networks [#6297]
  * Add minreducedwidth and minreducedheight to layout for
    increasing control over automargin [#6307]
  * Add entrywidth and entrywidthmode to legend [#6202, #6324]
- Add patches for compatibility with numpy 1.24
  * plotly-fix-sources-np1.24.patch
  * plotly-fix-tests-np1.24.patch

OBS-URL: https://build.opensuse.org/request/show/1045226
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=51
2022-12-24 16:22:24 +00:00
b71a45e217 Accepting request 995870 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/995870
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=34
2022-08-16 15:07:54 +00:00
f1cb1ff85a Accepting request 995161 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/995161
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=49
2022-08-16 06:46:27 +00:00
5e689674ec Accepting request 984880 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/984880
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=33
2022-06-25 08:24:19 +00:00
e393d82c2a Accepting request 984676 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/984676
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=47
2022-06-24 11:36:35 +00:00
973aa21d89 Accepting request 954167 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/954167
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=32
2022-02-14 21:36:10 +00:00
a6cfd0895a Accepting request 953983 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/953983
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=46
2022-02-14 08:15:02 +00:00
8264b9e0b4 Accepting request 945911 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/945911
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=31
2022-01-12 23:22:37 +00:00
c650976f22 Accepting request 945659 from home:bnavigator:branches:devel:languages:python:numeric
- Update to version 5.5.0
  * Added text_auto argument to px.bar, px.histogram,
    px.density_heatmap, px.imshow #3518
  * Deprecated ff.create_annotated_heatmap,
    ff.create_county_choropleth, ff.create_gantt #3518
  * Added div_id argument to pio.to_html, pio.write_html,
    fig.to_html and fig.write_html to optionally make its IDs
    deterministic #3487 with thanks to @Skn0tt
  * Fixed ValueError when ff.create_annotated_heatmap passes rgba()
    colors into to_rgb_color_list #3478 with thanks to @janosh
  * Updated Plotly.js to from version 2.6.3 to version 2.8.3. See
    the plotly.js CHANGELOG for more information. Notable changes
    include:
    - Horizontal color bars
    - texttemplate for histogram-like and heatmap-like traces
- Release notes for 5.4.0
  * Fixed error when serializing dict with mix of string and
    non-string keys #3380
  * The JSON serialization engines no longer sort their keys #3380
  * Updated Plotly.js to from version 2.4.2 to version 2.6.3. See
    the plotly.js CHANGELOG for more information. Notable changes
    include:
  * New subplot type smith that supports scattersmith trace types
    for visualizing data in the complex domain
  * Changes to Plotly.js packaging
- Clean python36 conditionals
- Don't wait on optional Shapely for python310: skip tests

OBS-URL: https://build.opensuse.org/request/show/945659
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=45
2022-01-12 18:42:29 +00:00
dc2f9ed558 Accepting request 917711 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/917711
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=30
2021-09-09 21:07:42 +00:00
ece0d3cedd Accepting request 917149 from home:apersaud:branches:devel:languages:python:numeric
- update to version 5.3.1:
  * Updated Plotly.js to from version 2.4.1 to version 2.4.2. See the
    plotly.js CHANGELOG for more information. These changes are
    reflected in the auto-generated plotly.graph_objects
    module. Notable changes include:
  * Bug fix for rendering unified hover labels in classic Jupyter
    Notebooks

OBS-URL: https://build.opensuse.org/request/show/917149
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=44
2021-09-09 11:40:04 +00:00
18bd09dab7 Accepting request 915575 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/915575
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=29
2021-09-02 21:20:12 +00:00
6bd76f45cf Accepting request 915453 from home:bnavigator:branches:devel:languages:python:numeric
- Update to version 5.3.0
  * Added legend.groupclick options
  * Provide bbox of hover items in event data
- Release 5.0.0
  * Updated/Changed:
    Items in this section may be considered backwards-incompatible
    changes for the purposes of Semantic Versioning but we expect
    the vast majority of users to be able to upgrade to version
    5.0 without encountering any issues.
  * Dropped support for Python older than 3.6 #3160
  * Updated Plotly.js to from version 1.58.4 to version 2.1.0. See
    the plotly.js CHANGELOG for more information. These changes
    are reflected in the auto-generated plotly.graph_objects
    module. Notable changes include:
  * dropped support for IE9 and IE10
  * dropped support for long-deprecated graph_objects like area
    traces and scatter.(t|r) and layout.(radial|angular)axis
    attributes
  * modebar no longer has hovermode or spikeline buttons by
    default (can be added back with fig.update_layout(modebar_add=
    ["v1hovermode", "toggleSpikeLines"]))
  * "Aa" text no longer appears on legend items unless mode="text"
  * In bar traces, textposition now defaults to "auto"
  * Font size for legend and colorbar titles now matches axis
    title font size (slightly bigger)
  * deprecated heatmapgl, pointcloud traces as well as all
    transform attributes
  * Combined plotlywidget into jupyterlab-plotly and packaged them
    as a federated extension #3142 with massive thanks to
    @fcollonval for the contribution
  * In addition to this change, large Plotly.js bundles are now
    lazily loaded on-demand by JupyterLab
  * Plotly.js CDN url will now be versioned by default for HTML
    exports using include_plotlyjs='cdn' and for "connected"
    renderers. #2961 with thanks to @adehad for the contribution
  * Recommending Kaleido by default over Orca #3094
  * Replaced retrying dependency with tenacity #2911 with thanks
    to @jmsmdy for the contribution
  * Plotly Express now always takes into account every value in c
    category_orders when computing discrete mappings (color,
    symbol, line-dash, pattern-shapes) as well as facets, even
    those values which are absent in the data #3247
- Fix rpmlint errors: touch __init__.py mtime before deduplicating
  the compile cache files
- Enable tests:
  * core test suite for all flavores
  * optional requirements test suite for all except python36 flavor
    -- many optional requirements are not available

OBS-URL: https://build.opensuse.org/request/show/915453
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=43
2021-09-01 18:57:33 +00:00
66cde053db Accepting request 877580 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/877580
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=28
2021-03-15 09:54:24 +00:00
359b6edca3 Accepting request 877431 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/877431
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=41
2021-03-08 08:27:54 +00:00
48b02445fd Accepting request 845472 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/845472
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=27
2020-11-03 14:16:14 +00:00
058f5e0b02 Accepting request 845114 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/845114
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=39
2020-11-02 15:26:46 +00:00
5e045568ab Accepting request 841149 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/841149
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=26
2020-10-25 17:06:52 +00:00
Tomáš Chvátal
b640271515 Accepting request 840902 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/840902
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=37
2020-10-12 07:04:07 +00:00
c768a81dbd Accepting request 834240 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/834240
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=25
2020-09-14 10:33:23 +00:00
Tomáš Chvátal
9f61dabb09 Accepting request 834029 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/834029
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=35
2020-09-14 08:09:34 +00:00
f13eb3673b Accepting request 820513 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/820513
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=24
2020-07-14 05:58:43 +00:00
Tomáš Chvátal
4646a4e25d Accepting request 820458 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/820458
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=33
2020-07-12 06:40:12 +00:00
c3ffc08188 Accepting request 802286 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/802286
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=23
2020-05-11 11:37:39 +00:00
Tomáš Chvátal
3068c7f918 Accepting request 802267 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/802267
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=31
2020-05-09 17:31:01 +00:00
20e8e958af Accepting request 793280 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/793280
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=22
2020-04-13 10:53:15 +00:00
Tomáš Chvátal
febeb04c10 Accepting request 793263 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/793263
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=29
2020-04-12 05:24:09 +00:00
149aeb485d Accepting request 784523 from devel:languages:python:numeric
- update to version 4.5.4:
  * Updated
    + The documentation of the API
      https://plot.ly/python-api-reference/ now documents the full API
      #2243
    + New documentation examples for facets #2235, legend #2227,
      subplots #2226, axes #2234 and histograms #2242. Thanks to
      @SylwiaOliwia2 for all these great examples!
  * Fixed
    + Jupyterlab extension now compatible with both Jupyterlab 1.2 and
      2.0 #2261 with thanks to @consideRatio for the contribution!
    + Fixed a bug when using boolean values for the color argument of
      px functions #2127
    + Corrected import bug which was occuring with old versions of
      ipywidgets #2265
    + Fixed python 3.8 syntax warning #2262, with thanks to @sgn for
      the contribution!
- changes from version 4.5.3:
  * Updated
    + Removed development dependency on nose testing framework #2217
  * Fixed
    + JupyterLab extension now compatible with JupyterLab 2.0 #2245
      with thanks to @consideRatio for the contribution!
- changes from version 4.5.2:
  * Fixed
    + Fix build errors in JupyterLab extension by pinning version of
      @types/plotly.js #2223

OBS-URL: https://build.opensuse.org/request/show/784523
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=21
2020-03-14 08:55:14 +00:00
Tomáš Chvátal
a2bb5c7a20 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=27 2020-03-13 07:14:11 +00:00
Tomáš Chvátal
ab080001d4 Accepting request 784425 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/784425
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=26
2020-03-13 07:12:23 +00:00
605b48ef0d Accepting request 778509 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/778509
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=20
2020-02-24 14:52:28 +00:00
Tomáš Chvátal
0f6321b497 Accepting request 778458 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/778458
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=24
2020-02-23 07:52:31 +00:00
334de49ede Accepting request 768853 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/768853
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=19
2020-01-31 22:56:57 +00:00
Todd R
46594c3a66 Accepting request 768852 from home:TheBlackCat:branches:devel:languages:python:numeric
- Update to version 4.5.0
  + Updated
    * Updated Plotly.js to version 1.52.1.
    * Plotly Express uses the new `legend.title` attribute and so now has shorter trace `name`s
    * The heuristic used by `px.parallel_categories` to determine which columns of the data frame to draw has been changed and made more configurable with the `dimensions_max_cardinality` argument
    * The `simple_white` colorbar styling has been streamlined
    * The `jupyterlab-plotly` and `plotlywidget` JupyterLab extensions should now share code when installed together, resulting in smaller JupyterLab vendor bundle sizes
  + Fixed
    * Plotly Express `category_orders` are now respected independent of the contents of the data set
    * `go.Scattergl` symbols now accept numeric specification
    * `px.scatter` trendline coefficients are now more readable
    * Built-in cyclical color scales now all have identical start and end points
  + Added
    * `px.sunburst` and `px.treemap` now accept a `path` argument for passing
      columns of a rectangular dataframe to build the charts
    * `px.choropleth` now accepts a user-supplied `geojson` attribute
    * `px.choropleth` and `px.choropleth_mapbox` now accept `featureidkey` to specify the GeoJSON field to use to match `locations`
    * `px.choropleth` and `px.choropleth_mapbox` now accept discrete color
    * `px.bar_polar` now accepts continuous color
    * New `layout.uniformtext` attribute allows for automatic standardization of font sizes across bar-like and hierarchical traces.

OBS-URL: https://build.opensuse.org/request/show/768852
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=22
2020-01-30 17:27:50 +00:00
9d2a04771e Accepting request 756725 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/756725
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=18
2019-12-13 11:04:22 +00:00
Tomáš Chvátal
041d7ad7fa Accepting request 756670 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/756670
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=20
2019-12-13 08:26:07 +00:00
2b9325a195 Accepting request 754762 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/754762
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=17
2019-12-07 14:09:05 +00:00
Todd R
84a37331b0 Accepting request 754761 from home:TheBlackCat:branches:devel:languages:python:numeric
Disable python2 support since dependencies dropped python2

OBS-URL: https://build.opensuse.org/request/show/754761
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=18
2019-12-06 19:08:47 +00:00
d5e604facf Accepting request 749099 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/749099
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=16
2019-11-17 18:23:29 +00:00
Tomáš Chvátal
e70861a407 Accepting request 749078 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/749078
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=16
2019-11-17 07:46:16 +00:00
0e9b6340da Accepting request 747198 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/747198
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=15
2019-11-10 21:51:21 +00:00
Tomáš Chvátal
932438ad7e Accepting request 747016 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/747016
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=14
2019-11-10 10:59:13 +00:00
7f81ad8ff8 Accepting request 729679 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/729679
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=14
2019-09-11 08:33:46 +00:00
Tomáš Chvátal
f47cc60ed0 Accepting request 729109 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/729109
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=12
2019-09-10 07:34:47 +00:00
eb4a269415 Accepting request 724149 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/724149
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=13
2019-08-19 19:38:06 +00:00
Todd R
57e0194fdd Accepting request 724148 from home:TheBlackCat:branches:devel:languages:python:numeric
Update to 4.1.0

OBS-URL: https://build.opensuse.org/request/show/724148
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=10
2019-08-16 16:26:58 +00:00
db111c2a1a Accepting request 718606 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/718606
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=12
2019-07-26 15:33:41 +00:00
Todd R
b4b5dd40bf Accepting request 718605 from home:TheBlackCat:branches:devel:languages:python:numeric
- Update to 4.0.0
  + Updated
    * Updated Plotly.js to version 1.48.3.
  + Added
    * The Plotly Express tech preview has been integrated as the `plotly.express` module 
    * Added a new renderers framework the supports rendering figure in a wide variety of contexts. See the new Displaying Plotly Figures documentation page for more information.
    * Added `plotly.io.write_html` and `plotly.io.to_html` functions for exporting figures to HTML. Also available as `.write_html` and `.to_html` figure methods.
    * Added new figure methods for batch updating figure properties (`update_layout`, `update_traces`, `update_xaxes`, etc.).  See the new Creating and Updating Figures documentation page for more details.
    * Added support for all trace types in `make_subplots` 
    * Added support for secondary y-axes in `make_subplots` 
    * Support passing a scalar trace object (rather than a list or tuple of trace objects) as the `data` property to the `Figure` constructor 
    * Added dictionary-stule `.pop` method to graph object classes 
    * New `jupyterlab-plotly` JupyterLab extension for rendering figures in JupyterLab. Replaces the `@jupyterlab/plotly-extension` extension, and includes JupyterLab 1.0 support.
    * Added new suite of built-in colorscales to the `plotly.colors` module, and support for specifying this wide range of colorscales by name. Also added support for specifying colorscales as a list of colors, in which case the color spacing is assumed to be uniform.
    * Added `sphinx-gallery` renderer for embedding plotly figures in Sphinx-Gallery.
  + Removed
    * The follow modules for interfacing with the Chart Studio cloud service have been removed from plotly.py and moved to the new `chart-studio` distribution package.  The following modules have been moved to a new top-level `chart_studio` module:
      > `plotly.plotly` -> `chart_studio.plotly`
      > `plotly.api` -> `chart_studio.api`
      > `plotly.dashboard_objs` -> `chart_studio.dashboard_objs`
      > `plotly.grid_objs` -> `chart_studio.grid_objs`
      > `plotly.presentation_objs` -> `chart_studio.presentation_objs`
    * The legacy `plotly.widgets.GraphWidget` class for displaying online figures hosted by Chart Studio as ipywidgets has been removed. Please use the offline, and much more capable, `plotly.graph_objects.FigureWidget` class instead.
    * The `fileopt` argument to `chart_studio.plotly.plot` has been removed, so in-place modifications to previously published figures are no longer supported, and a figure will always overwrite a figure with the same name. 
  + Changed
    * The `'plotly'` template is used as the default theme across all figures.
    * In order to reduce the size of the core `plotly` distribution package, the bundled geographic shape files used by the `create_choropleth` figure factory have been moved to a new optional `plotly-geo` distribution package 
    * For consistency with other figure factories, the `create_choropleth`  and `create_gantt` figure factories now always returns `Figure` objects, rather than dictionaries.
    * Figure add trace methods (`.add_trace`, `.add_traces`, `.add_scatter`, etc.) now return a reference to the calling figure, rather than the newly created trace 
    * `plotly.tools.make_subplots` has been moved to `plotly.subplots.make_subplots`, though it is still available at the previous location for backward compatibility
    * The `plotly.graph_objs` module has been moved to `plotly.graph_objects`, though it is still available at the previous location for backward compatibility 
    * Trace `uid` properties are only generated automatically when a trace is added to a `FigureWidget`.  When a trace is added to a standard `Figure` graph object the input `uid`, if provided, is accepted as is.
    * `datetime` objects that include timezones are not longer converted to UTC 
    * When a tuple property (e.g. `layout.annotations`) is updated with a list/tuple that is longer than the current value, the extra elements are appended to the end of the tuple.
  + Fixed
    * Fixed visibility of `bar` trace error bars in built-in templates

OBS-URL: https://build.opensuse.org/request/show/718605
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=8
2019-07-25 17:25:51 +00:00
83ee5016d3 Accepting request 707292 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/707292
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=11
2019-06-06 16:16:42 +00:00
Todd R
d06fdd0df1 Accepting request 707291 from home:TheBlackCat:branches:devel:languages:python:numeric
- Fix jupyter dependencies.
- Update to 3.10.0
  + Updated
    * Updated Plotly.js to version 1.48.1. 
  + Added
    * Added funnel trace
    * Added funnelarea traces
    * Added support for shared color axes via coloraxis attributes in the layout
    * Added support for sorting categorical cartesian axes by value
    * Added `bingroup` to `histogram`, `histogram2d` and `histogram2dcontour`
      to group traces to have compatible auto-bin values
    * Add legend `itemclick` and `itemdoubleclick` attributes to set or disable
      the legend item click and double-click behavior
    * Added support for calling orca through [Xvfb](https://www.x.org/releases/X11R7.6/doc/man/man1/Xvfb.1.xhtml)
      to support static image export on Linux when X11 is not available
  + Fixed
    * Fixed `PlotlyJSONEncoder` encoding error when `simplejson` is installed
    * HTML export now honors the figure height specified in the figure template
    * Fixed display height of figure displayed in JupyterLab
    * Fixed honouring of the `validate=False` option for all renderer types
- Update to 3.9.0
  + Updated
    * Updated Plotly.js to version 1.47.4.
  + Added
    * Added "magic underscore" support for specifying nested figure properties
    * Added `select_traces`, `for_each_trace`, and `update_traces` figure
      methods for accessing and updating traces by subplot location and trace
      properties
    * Added `select_*`, `for_each_*`, and `update_*` figure methods for
      accessing and updating subplot objects (`xaxis`, `scene`, `polar`, etc)
    * Added support for Dash Design Kit style color specifications
    * Added support for the `plotly_unselect` plotly.js event in a new
      `on_unselect` trace method 
  + Changed
    * Changed the default colorscale to be `plasma` for the `plotly`, `plotly_white`, and
      `plotly_dark` templates for plotly.py version 4
    * Reordered the default colorway for the `plotly`, `plotly_white`, and
      `plotly_dark` templates for plotly.py version 4
  + Fixed
    * Fixed package listing in setup.py
    * Fixed built-in templates so that `heatmap` colorscales can be overridden
      without specifying `autocolorscale=False`
    * Fix `UnboundLocalError` error in the presence of a missing or corrupt
      `~/.plotly/.config` file
    * Fixed error when combining `sankey` traces with cartesian subplots

OBS-URL: https://build.opensuse.org/request/show/707291
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=6
2019-06-03 18:51:29 +00:00
d36dcaacbb Accepting request 668731 from devel:languages:python:numeric
- Fix dependency issue.
- Update to version 3.5.0

OBS-URL: https://build.opensuse.org/request/show/668731
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=10
2019-01-26 21:22:48 +00:00
ff0ecc9c23 Accepting request 598787 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/598787
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=9
2018-04-20 15:31:21 +00:00
bbc7aaf858 Accepting request 578896 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/578896
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=8
2018-02-22 14:02:38 +00:00
006f5c2387 Accepting request 575270 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/575270
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=7
2018-02-14 08:45:15 +00:00
45befcd3a7 Accepting request 554734 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/554734
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=6
2017-12-08 11:58:41 +00:00
ca4a125ddc Accepting request 545904 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/545904
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=5
2017-11-27 21:18:35 +00:00
968fb0f038 Accepting request 537520 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/537520
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=4
2017-10-31 14:43:48 +00:00
5903428a19 Accepting request 534158 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/534158
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=3
2017-10-16 23:53:15 +00:00
020a973511 Accepting request 532612 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/532612
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=2
2017-10-09 17:46:53 +00:00
21d4e82337 Accepting request 517548 from devel:languages:python
New package

OBS-URL: https://build.opensuse.org/request/show/517548
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=1
2017-08-28 13:11:16 +00:00
8 changed files with 2625 additions and 1306 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d1e422b2ad02684fa290f5f2c28e571387d9b1c1e135b1a6a63539aab13efb07
size 58173524
oid sha256:377b6ee30932e952e20f92c94aadeca7f1d1d0f53f8b07d8fa6081cca429a86a
size 69867488

File diff suppressed because it is too large Load Diff

2087
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,83 +1,359 @@
From 0199582127111c453db70a0133db8c64baca7c40 Mon Sep 17 00:00:00 2001
From 99df182e9171e9b9e81811447f37ace05acc9272 Mon Sep 17 00:00:00 2001
From: Ben Greiner <code@bnavigator.de>
Date: Sun, 2 Jun 2024 16:43:06 +0200
Subject: [PATCH 1/3] Remove np.nan and np.inf aliases no longer present in
Subject: [PATCH 01/14] Remove np.nan and np.inf aliases no longer present in
numpy2
---
.../tests/test_optional/test_utils/test_utils.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/packages/python/plotly/plotly/tests/test_optional/test_utils/test_utils.py b/packages/python/plotly/plotly/tests/test_optional/test_utils/test_utils.py
index cf32e1bdf..d7d982e63 100644
--- a/packages/python/plotly/plotly/tests/test_optional/test_utils/test_utils.py
+++ b/packages/python/plotly/plotly/tests/test_optional/test_utils/test_utils.py
@@ -34,7 +34,7 @@ if matplotlylib:
diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_any_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_any_validator.py
index 0d1083c7ee..57ff05f218 100644
--- a/packages/python/plotly/_plotly_utils/tests/validators/test_any_validator.py
+++ b/packages/python/plotly/_plotly_utils/tests/validators/test_any_validator.py
@@ -1,6 +1,7 @@
import pytest
from _plotly_utils.basevalidators import AnyValidator
import numpy as np
+from plotly.tests.test_optional.test_utils.test_utils import np_nan, np_inf
## JSON encoding
numeric_list = [1, 2, 3]
-np_list = np.array([1, 2, 3, np.NaN, np.NAN, np.Inf, dt(2014, 1, 5)])
+np_list = np.array([1, 2, 3, np.nan, np.inf, dt(2014, 1, 5)])
mixed_list = [
1,
"A",
@@ -45,7 +45,7 @@ mixed_list = [
dt_list = [dt(2014, 1, 5), dt(2014, 1, 5, 1, 1, 1), dt(2014, 1, 5, 1, 1, 1, 1)]
df = pd.DataFrame(
- columns=["col 1"], data=[1, 2, 3, dt(2014, 1, 5), pd.NaT, np.NaN, np.Inf]
+ columns=["col 1"], data=[1, 2, 3, dt(2014, 1, 5), pd.NaT, np.nan, np.inf]
# Fixtures
@@ -18,7 +19,7 @@ def validator_aok():
# Tests
# -----
# ### Acceptance ###
-@pytest.mark.parametrize("val", [set(), "Hello", 123, np.inf, np.nan, {}])
+@pytest.mark.parametrize("val", [set(), "Hello", 123, np_inf(), np_nan(), {}])
def test_acceptance(val, validator):
assert validator.validate_coerce(val) is val
diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_boolean_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_boolean_validator.py
index ec4b7c3197..bc714d9f8d 100644
--- a/packages/python/plotly/_plotly_utils/tests/validators/test_boolean_validator.py
+++ b/packages/python/plotly/_plotly_utils/tests/validators/test_boolean_validator.py
@@ -1,7 +1,6 @@
import pytest
from _plotly_utils.basevalidators import BooleanValidator
-import numpy as np
-
+from plotly.tests.test_optional.test_utils.test_utils import np_nan
# Boolean Validator
# =================
@@ -18,7 +17,7 @@ def test_acceptance(val, validator):
# ### Rejection ###
-@pytest.mark.parametrize("val", [1.0, 0.0, "True", "False", [], 0, np.nan])
+@pytest.mark.parametrize("val", [1.0, 0.0, "True", "False", [], 0, np_nan()])
def test_rejection(val, validator):
with pytest.raises(ValueError) as validation_failure:
validator.validate_coerce(val)
diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_enumerated_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_enumerated_validator.py
index f5eff75401..5090610384 100644
--- a/packages/python/plotly/_plotly_utils/tests/validators/test_enumerated_validator.py
+++ b/packages/python/plotly/_plotly_utils/tests/validators/test_enumerated_validator.py
@@ -2,7 +2,7 @@
import numpy as np
import pandas as pd
from _plotly_utils.basevalidators import EnumeratedValidator
-
+from plotly.tests.test_optional.test_utils.test_utils import np_inf
# Fixtures
# --------
@@ -42,7 +42,7 @@ def test_acceptance(val, validator):
# ### Value Rejection ###
@pytest.mark.parametrize(
"val",
- [True, 0, 1, 23, np.inf, set(), ["first", "second"], [True], ["third", 4], [4]],
+ [True, 0, 1, 23, np_inf(), set(), ["first", "second"], [True], ["third", 4], [4]],
)
def test_rejection_by_value(val, validator):
with pytest.raises(ValueError) as validation_failure:
@@ -95,7 +95,7 @@ def test_acceptance_aok(val, validator_aok):
rng = pd.date_range("1/1/2011", periods=2, freq="H")
@@ -184,7 +184,7 @@ class TestJSONEncoder(TestCase):
assert (
js1 == '{"type": "scatter3d", "x": [1, 2, 3], '
- '"y": [1, 2, 3, null, null, null, "2014-01-05T00:00:00"], '
+ '"y": [1, 2, 3, null, null, "2014-01-05T00:00:00"], '
'"z": [1, "A", "2014-01-05T00:00:00", '
'"2014-01-05T01:01:01", "2014-01-05T01:01:01.000001"]}'
)
@@ -195,9 +195,9 @@ class TestJSONEncoder(TestCase):
_json.dumps(figure, cls=utils.PlotlyJSONEncoder, sort_keys=True)
# ### Rejection by value ###
-@pytest.mark.parametrize("val", [True, 0, 1, 23, np.inf, set()])
+@pytest.mark.parametrize("val", [True, 0, 1, 23, np_inf(), set()])
def test_rejection_by_value_aok(val, validator_aok):
with pytest.raises(ValueError) as validation_failure:
validator_aok.validate_coerce(val)
@@ -105,7 +105,7 @@ def test_rejection_by_value_aok(val, validator_aok):
# Test data wasn't mutated
- np_array = np.array([1, 2, 3, np.NaN, np.NAN, np.Inf, dt(2014, 1, 5)])
+ np_array = np.array([1, 2, 3, np.nan, np.inf, dt(2014, 1, 5)])
for k in range(len(np_array)):
- if k in [3, 4]:
+ if k == 3:
# check NaN
assert np.isnan(np_list[k]) and np.isnan(np_array[k])
else:
@@ -237,7 +237,7 @@ class TestJSONEncoder(TestCase):
# Test that data wasn't mutated
assert_series_equal(
df["col 1"],
- pd.Series([1, 2, 3, dt(2014, 1, 5), pd.NaT, np.NaN, np.Inf], name="col 1"),
+ pd.Series([1, 2, 3, dt(2014, 1, 5), pd.NaT, np.nan, np.inf], name="col 1"),
)
# ### Reject by elements ###
@pytest.mark.parametrize(
- "val", [[True], [0], [1, 23], [np.inf, set()], ["ffirstt", "second", "third"]]
+ "val", [[True], [0], [1, 23], [np_inf(), set()], ["ffirstt", "second", "third"]]
)
def test_rejection_by_element_aok(val, validator_aok):
with pytest.raises(ValueError) as validation_failure:
diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_integer_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_integer_validator.py
index 9a01fde7e4..446e949545 100644
--- a/packages/python/plotly/_plotly_utils/tests/validators/test_integer_validator.py
+++ b/packages/python/plotly/_plotly_utils/tests/validators/test_integer_validator.py
@@ -5,7 +5,7 @@
from _plotly_utils.basevalidators import IntegerValidator
import numpy as np
import pandas as pd
-
+from plotly.tests.test_optional.test_utils.test_utils import np_nan, np_inf
j2 = _json.dumps(df.index, cls=utils.PlotlyJSONEncoder)
--
2.45.1
From f88554113e8cf55a1d756c3f0d33b92a891d0475 Mon Sep 17 00:00:00 2001
From: Ben Greiner <code@bnavigator.de>
Date: Sun, 2 Jun 2024 16:48:34 +0200
Subject: [PATCH 2/3] Avoid putting 255 into int8 due to new numpy 2 type
promotion rules
---
.../plotly/plotly/tests/test_optional/test_px/test_imshow.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
# ### Fixtures ###
@pytest.fixture()
@@ -53,7 +53,7 @@ def test_acceptance(val, validator):
# ### Rejection by value ###
@pytest.mark.parametrize(
- "val", ["hello", (), [], [1, 2, 3], set(), "34", np.nan, np.inf, -np.inf]
+ "val", ["hello", (), [], [1, 2, 3], set(), "34", np_nan(), np_inf(), -np_inf()]
)
def test_rejection_by_value(val, validator):
with pytest.raises(ValueError) as validation_failure:
diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_number_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_number_validator.py
index 7fd9e6657c..847f02619a 100644
--- a/packages/python/plotly/_plotly_utils/tests/validators/test_number_validator.py
+++ b/packages/python/plotly/_plotly_utils/tests/validators/test_number_validator.py
@@ -4,6 +4,7 @@
from _plotly_utils.basevalidators import NumberValidator
import numpy as np
import pandas as pd
+from plotly.tests.test_optional.test_utils.test_utils import np_nan, np_inf
# Fixtures
# --------
@@ -36,7 +37,7 @@ def validator_aok():
# ------------
# ### Acceptance ###
@pytest.mark.parametrize(
- "val", [1.0, 0.0, 1, -1234.5678, 54321, np.pi, np.nan, np.inf, -np.inf]
+ "val", [1.0, 0.0, 1, -1234.5678, 54321, np.pi, np_nan(), np_inf(), -np_inf()]
)
def test_acceptance(val, validator):
assert validator.validate_coerce(val) == approx(val, nan_ok=True)
@@ -57,7 +58,7 @@ def test_acceptance_min_max(val, validator_min_max):
assert validator_min_max.validate_coerce(val) == approx(val)
-@pytest.mark.parametrize("val", [-1.01, -10, 2.1, 234, -np.inf, np.nan, np.inf])
+@pytest.mark.parametrize("val", [-1.01, -10, 2.1, 234, -np_inf(), np_nan(), np_inf()])
def test_rejection_min_max(val, validator_min_max):
with pytest.raises(ValueError) as validation_failure:
validator_min_max.validate_coerce(val)
@@ -66,12 +67,12 @@ def test_rejection_min_max(val, validator_min_max):
# ### With min only ###
-@pytest.mark.parametrize("val", [0, 0.0, -0.5, 99999, np.inf])
+@pytest.mark.parametrize("val", [0, 0.0, -0.5, 99999, np_inf()])
def test_acceptance_min(val, validator_min):
assert validator_min.validate_coerce(val) == approx(val)
-@pytest.mark.parametrize("val", [-1.01, -np.inf, np.nan])
+@pytest.mark.parametrize("val", [-1.01, -np_inf(), np_nan()])
def test_rejection_min(val, validator_min):
with pytest.raises(ValueError) as validation_failure:
validator_min.validate_coerce(val)
@@ -80,12 +81,12 @@ def test_rejection_min(val, validator_min):
# ### With max only ###
-@pytest.mark.parametrize("val", [0, 0.0, -np.inf, -123456, np.pi / 2])
+@pytest.mark.parametrize("val", [0, 0.0, -np_inf(), -123456, np.pi / 2])
def test_acceptance_max(val, validator_max):
assert validator_max.validate_coerce(val) == approx(val)
-@pytest.mark.parametrize("val", [2.01, np.inf, np.nan])
+@pytest.mark.parametrize("val", [2.01, np_inf(), np_nan()])
def test_rejection_max(val, validator_max):
with pytest.raises(ValueError) as validation_failure:
validator_max.validate_coerce(val)
@@ -142,7 +143,13 @@ def test_rejection_aok(val, validator_aok):
# ### Rejection by element ###
@pytest.mark.parametrize(
"val",
- [[-1.6, 0.0], [1, 1.5, 2], [-0.1234, 0.41, np.nan], [0, np.inf], [0, -np.inf]],
+ [
+ [-1.6, 0.0],
+ [1, 1.5, 2],
+ [-0.1234, 0.41, np_nan()],
+ [0, np_inf()],
+ [0, -np_inf()],
+ ],
)
def test_rejection_aok_min_max(val, validator_aok):
with pytest.raises(ValueError) as validation_failure:
diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_string_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_string_validator.py
index 380c5bccec..f9f96f4f79 100644
--- a/packages/python/plotly/_plotly_utils/tests/validators/test_string_validator.py
+++ b/packages/python/plotly/_plotly_utils/tests/validators/test_string_validator.py
@@ -2,6 +2,7 @@
from _plotly_utils.basevalidators import StringValidator
import numpy as np
+from plotly.tests.test_optional.test_utils.test_utils import np_nan
# Fixtures
@@ -53,7 +54,7 @@ def validator_no_blanks_aok():
# Not strict
# ### Acceptance ###
@pytest.mark.parametrize(
- "val", ["bar", 234, np.nan, "HELLO!!!", "world!@#$%^&*()", "", "\u03BC"]
+ "val", ["bar", 234, np_nan(), "HELLO!!!", "world!@#$%^&*()", "", "\u03BC"]
)
def test_acceptance(val, validator):
expected = str(val) if not isinstance(val, str) else val
@@ -108,7 +109,7 @@ def test_acceptance_strict(val, validator_strict):
# ### Rejection by value ###
-@pytest.mark.parametrize("val", [(), [], [1, 2, 3], set(), np.nan, np.pi, 23])
+@pytest.mark.parametrize("val", [(), [], [1, 2, 3], set(), np_nan(), np.pi, 23])
def test_rejection_strict(val, validator_strict):
with pytest.raises(ValueError) as validation_failure:
validator_strict.validate_coerce(val)
diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_subplotid_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_subplotid_validator.py
index d4f7a84974..39b3c96f04 100644
--- a/packages/python/plotly/_plotly_utils/tests/validators/test_subplotid_validator.py
+++ b/packages/python/plotly/_plotly_utils/tests/validators/test_subplotid_validator.py
@@ -1,6 +1,6 @@
import pytest
from _plotly_utils.basevalidators import SubplotidValidator
-import numpy as np
+from plotly.tests.test_optional.test_utils.test_utils import np_nan, np_inf
# Fixtures
@@ -19,7 +19,7 @@ def test_acceptance(val, validator):
# ### Rejection by type ###
-@pytest.mark.parametrize("val", [23, [], {}, set(), np.inf, np.nan])
+@pytest.mark.parametrize("val", [23, [], {}, set(), np_inf(), np_nan()])
def test_rejection_type(val, validator):
with pytest.raises(ValueError) as validation_failure:
validator.validate_coerce(val)
diff --git a/packages/python/plotly/plotly/tests/test_optional/test_figure_factory/test_figure_factory.py b/packages/python/plotly/plotly/tests/test_optional/test_figure_factory/test_figure_factory.py
index 20a1b23f7f..52c16bf09c 100644
--- a/packages/python/plotly/plotly/tests/test_optional/test_figure_factory/test_figure_factory.py
+++ b/packages/python/plotly/plotly/tests/test_optional/test_figure_factory/test_figure_factory.py
@@ -6,6 +6,7 @@
import plotly.figure_factory as ff
from plotly.tests.test_optional.optional_utils import NumpyTestUtilsMixin
+from plotly.tests.test_optional.test_utils.test_utils import np_nan, np_inf
import numpy as np
from plotly.tests.utils import TestCaseNoTemplate
@@ -975,10 +976,10 @@ def test_default_dendrogram(self):
],
layout=go.Layout(
autosize=False,
- height=np.inf,
+ height=np_inf(),
hovermode="closest",
showlegend=False,
- width=np.inf,
+ width=np_inf(),
xaxis=go.layout.XAxis(
mirror="allticks",
rangemode="tozero",
@@ -1062,10 +1063,10 @@ def test_dendrogram_random_matrix(self):
],
layout=go.Layout(
autosize=False,
- height=np.inf,
+ height=np_inf(),
hovermode="closest",
showlegend=False,
- width=np.inf,
+ width=np_inf(),
xaxis=go.layout.XAxis(
mirror="allticks",
rangemode="tozero",
@@ -1217,10 +1218,10 @@ def test_dendrogram_colorscale(self):
],
layout=go.Layout(
autosize=False,
- height=np.inf,
+ height=np_inf(),
hovermode="closest",
showlegend=False,
- width=np.inf,
+ width=np_inf(),
xaxis=go.layout.XAxis(
mirror="allticks",
rangemode="tozero",
@@ -4118,25 +4119,25 @@ def test_full_choropleth(self):
-88.02432999999999,
-88.04504299999999,
-88.053375,
- np.nan,
+ np_nan(),
-88.211209,
-88.209999,
-88.208733,
-88.209559,
-88.211209,
- np.nan,
+ np_nan(),
-88.22511999999999,
-88.22128099999999,
-88.218694,
-88.22465299999999,
-88.22511999999999,
- np.nan,
+ np_nan(),
-88.264659,
-88.25782699999999,
-88.25947,
-88.255659,
-88.264659,
- np.nan,
+ np_nan(),
-88.327302,
-88.20146799999999,
-88.141143,
@@ -4146,13 +4147,13 @@ def test_full_choropleth(self):
-88.10665399999999,
-88.149812,
-88.327302,
- np.nan,
+ np_nan(),
-88.346745,
-88.341235,
-88.33288999999999,
-88.346823,
-88.346745,
- np.nan,
+ np_nan(),
-88.473227,
-88.097888,
-88.154617,
diff --git a/packages/python/plotly/plotly/tests/test_optional/test_px/test_imshow.py b/packages/python/plotly/plotly/tests/test_optional/test_px/test_imshow.py
index c2e863c84..d8f9ad98c 100644
index c2e863c846..f06b91bca0 100644
--- a/packages/python/plotly/plotly/tests/test_optional/test_px/test_imshow.py
+++ b/packages/python/plotly/plotly/tests/test_optional/test_px/test_imshow.py
@@ -341,7 +341,7 @@ def test_imshow_source_dtype_zmax(dtype, contrast_rescaling):
@@ -7,6 +7,7 @@
import base64
import datetime
from plotly.express.imshow_utils import rescale_intensity
+from plotly.tests.test_optional.test_utils.test_utils import np_nan
img_rgb = np.array([[[255, 0, 0], [0, 255, 0], [0, 0, 255]]], dtype=np.uint8)
img_gray = np.arange(100, dtype=float).reshape((10, 10))
@@ -111,7 +112,7 @@ def test_nan_inf_data(binary_string):
zmaxs = [1, 255]
for zmax, img in zip(zmaxs, imgs):
img[0] = 0
- img[10:12] = np.nan
+ img[10:12] = np_nan()
# the case of 2d/heatmap is handled gracefully by the JS trace but I don't know how to check it
fig = px.imshow(
np.dstack((img,) * 3),
@@ -341,7 +342,7 @@ def test_imshow_source_dtype_zmax(dtype, contrast_rescaling):
assert (
np.abs(
np.max(decode_image_string(fig.data[0].source))
@ -86,6 +362,205 @@ index c2e863c84..d8f9ad98c 100644
)
< 1
)
--
2.45.1
diff --git a/packages/python/plotly/plotly/tests/test_optional/test_px/test_trendline.py b/packages/python/plotly/plotly/tests/test_optional/test_px/test_trendline.py
index 66046981ef..12e7f4b503 100644
--- a/packages/python/plotly/plotly/tests/test_optional/test_px/test_trendline.py
+++ b/packages/python/plotly/plotly/tests/test_optional/test_px/test_trendline.py
@@ -3,6 +3,7 @@
import pandas as pd
import pytest
from datetime import datetime
+from plotly.tests.test_optional.test_utils.test_utils import np_nan
@pytest.mark.parametrize(
@@ -65,7 +66,7 @@ def test_trendline_enough_values(mode, options):
assert len(fig.data) == 2
assert fig.data[1].x is None
fig = px.scatter(
- x=[0, 1], y=np.array([0, np.nan]), trendline=mode, trendline_options=options
+ x=[0, 1], y=np.array([0, np_nan()]), trendline=mode, trendline_options=options
)
assert len(fig.data) == 2
assert fig.data[1].x is None
@@ -75,8 +76,8 @@ def test_trendline_enough_values(mode, options):
assert len(fig.data) == 2
assert fig.data[1].x is None
fig = px.scatter(
- x=np.array([0, 1, np.nan]),
- y=np.array([0, np.nan, 1]),
+ x=np.array([0, 1, np_nan()]),
+ y=np.array([0, np_nan(), 1]),
trendline=mode,
trendline_options=options,
)
@@ -88,8 +89,8 @@ def test_trendline_enough_values(mode, options):
assert len(fig.data) == 2
assert len(fig.data[1].x) == 2
fig = px.scatter(
- x=np.array([0, 1, np.nan, 2]),
- y=np.array([1, np.nan, 1, 2]),
+ x=np.array([0, 1, np_nan(), 2]),
+ y=np.array([1, np_nan(), 1, 2]),
trendline=mode,
trendline_options=options,
)
@@ -112,7 +113,7 @@ def test_trendline_enough_values(mode, options):
def test_trendline_nan_values(mode, options):
df = px.data.gapminder().query("continent == 'Oceania'")
start_date = 1970
- df["pop"][df["year"] < start_date] = np.nan
+ df["pop"][df["year"] < start_date] = np_nan()
fig = px.scatter(
df,
x="year",
diff --git a/packages/python/plotly/plotly/tests/test_optional/test_utils/test_utils.py b/packages/python/plotly/plotly/tests/test_optional/test_utils/test_utils.py
index 9fa1896640..33284452b7 100644
--- a/packages/python/plotly/plotly/tests/test_optional/test_utils/test_utils.py
+++ b/packages/python/plotly/plotly/tests/test_optional/test_utils/test_utils.py
@@ -9,6 +9,7 @@
from unittest import TestCase
from time import time
import pytest
+from packaging.version import Version
import numpy as np
import pandas as pd
@@ -31,10 +32,56 @@
import matplotlib.pyplot as plt
from plotly.matplotlylib import Exporter, PlotlyRenderer
+ @pytest.mark.matplotlib
+ def test_masked_constants_example():
+ try:
+ pd.options.plotting.backend = "matplotlib"
+ except Exception:
+ pass
+
+ # example from: https://gist.github.com/tschaume/d123d56bf586276adb98
+ data = {
+ "esN": [0, 1, 2, 3],
+ "ewe_is0": [-398.11901997, -398.11902774, -398.11897111, -398.11882215],
+ "ewe_is1": [-398.11793027, -398.11792966, -398.11786308, None],
+ "ewe_is2": [-398.11397008, -398.11396421, None, None],
+ }
+ df = pd.DataFrame.from_dict(data)
+
+ plotopts = {"x": "esN"}
+ fig, ax = plt.subplots(1, 1)
+ df.plot(ax=ax, **plotopts)
+
+ renderer = PlotlyRenderer()
+ Exporter(renderer).run(fig)
+
+ _json.dumps(renderer.plotly_fig, cls=utils.PlotlyJSONEncoder)
+
+ jy = _json.dumps(
+ renderer.plotly_fig["data"][1]["y"], cls=utils.PlotlyJSONEncoder
+ )
+ print(jy)
+ array = _json.loads(jy)
+ assert array == [-398.11793027, -398.11792966, -398.11786308, None]
+
+
+def np_nan():
+ if Version(np.__version__) < Version("2.0.0"):
+ return np.NaN
+ else:
+ return np.nan
+
+
+def np_inf():
+ if Version(np.__version__) < Version("2.0.0"):
+ return np.Inf
+ else:
+ return np.inf
+
## JSON encoding
numeric_list = [1, 2, 3]
-np_list = np.array([1, 2, 3, np.NaN, np.NAN, np.Inf, dt(2014, 1, 5)])
+np_list = np.array([1, 2, 3, np_nan(), np_inf(), dt(2014, 1, 5)])
mixed_list = [
1,
"A",
@@ -45,7 +92,7 @@
dt_list = [dt(2014, 1, 5), dt(2014, 1, 5, 1, 1, 1), dt(2014, 1, 5, 1, 1, 1, 1)]
df = pd.DataFrame(
- columns=["col 1"], data=[1, 2, 3, dt(2014, 1, 5), pd.NaT, np.NaN, np.Inf]
+ columns=["col 1"], data=[1, 2, 3, dt(2014, 1, 5), pd.NaT, np_nan(), np_inf()]
)
rng = pd.date_range("1/1/2011", periods=2, freq="H")
@@ -184,7 +231,7 @@ def test_figure_json_encoding(self):
assert (
js1 == '{"type": "scatter3d", "x": [1, 2, 3], '
- '"y": [1, 2, 3, null, null, null, "2014-01-05T00:00:00"], '
+ '"y": [1, 2, 3, null, null, "2014-01-05T00:00:00"], '
'"z": [1, "A", "2014-01-05T00:00:00", '
'"2014-01-05T01:01:01", "2014-01-05T01:01:01.000001"]}'
)
@@ -195,9 +242,9 @@ def test_figure_json_encoding(self):
_json.dumps(figure, cls=utils.PlotlyJSONEncoder, sort_keys=True)
# Test data wasn't mutated
- np_array = np.array([1, 2, 3, np.NaN, np.NAN, np.Inf, dt(2014, 1, 5)])
+ np_array = np.array([1, 2, 3, np_nan(), np_inf(), dt(2014, 1, 5)])
for k in range(len(np_array)):
- if k in [3, 4]:
+ if k == 3:
# check NaN
assert np.isnan(np_list[k]) and np.isnan(np_array[k])
else:
@@ -237,7 +284,9 @@ def test_pandas_json_encoding(self):
# Test that data wasn't mutated
assert_series_equal(
df["col 1"],
- pd.Series([1, 2, 3, dt(2014, 1, 5), pd.NaT, np.NaN, np.Inf], name="col 1"),
+ pd.Series(
+ [1, 2, 3, dt(2014, 1, 5), pd.NaT, np_nan(), np_inf()], name="col 1"
+ ),
)
j2 = _json.dumps(df.index, cls=utils.PlotlyJSONEncoder)
@@ -414,38 +463,3 @@ def test_no_numpy_int_type(self):
expected_tuple = (int,)
self.assertEqual(int_type_tuple, expected_tuple)
-
-
-if matplotlylib:
-
- @pytest.mark.matplotlib
- def test_masked_constants_example():
- try:
- pd.options.plotting.backend = "matplotlib"
- except Exception:
- pass
-
- # example from: https://gist.github.com/tschaume/d123d56bf586276adb98
- data = {
- "esN": [0, 1, 2, 3],
- "ewe_is0": [-398.11901997, -398.11902774, -398.11897111, -398.11882215],
- "ewe_is1": [-398.11793027, -398.11792966, -398.11786308, None],
- "ewe_is2": [-398.11397008, -398.11396421, None, None],
- }
- df = pd.DataFrame.from_dict(data)
-
- plotopts = {"x": "esN"}
- fig, ax = plt.subplots(1, 1)
- df.plot(ax=ax, **plotopts)
-
- renderer = PlotlyRenderer()
- Exporter(renderer).run(fig)
-
- _json.dumps(renderer.plotly_fig, cls=utils.PlotlyJSONEncoder)
-
- jy = _json.dumps(
- renderer.plotly_fig["data"][1]["y"], cls=utils.PlotlyJSONEncoder
- )
- print(jy)
- array = _json.loads(jy)
- assert array == [-398.11793027, -398.11792966, -398.11786308, None]

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:54c4f90f862e50f3e51259c2edd78872de2244e0a3e5ce465fed5204c22da83a
size 31113116

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:956b07447a706662af8c32b949936e9d219cf9c6faff42bfddb0362f73e21d6a
size 32096988

View File

@ -1,3 +1,66 @@
-------------------------------------------------------------------
Fri Dec 6 21:47:19 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Skip scikit-image tests on python313: not available yet
-------------------------------------------------------------------
Wed Nov 27 12:02:14 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Update to 5.24.1
* Updated Plotly.js from version 2.35.0 to version 3.0.0-rc.0.
See the plotly.js CHANGELOG for more information.
- Release 5.24.0
## Added
* New px functions for maps: scatter_map, line_map,
choropleth_map, and density_map.
## Updated
* Updated Plotly.js from version 2.34.0 to version 2.35.0. See
the plotly.js CHANGELOG for more information. These changes are
reflected in the auto-generated plotly.graph_objects module.
Notable changes include:
- Add new traces: scattermap, choroplethmap and densitymap and
map subplots which use maplibre to render maps [#7015, #7060,
#7085, #7088, #7090, #7092, #7094, #7134]
- Deprecate mapbox traces and mapbox subplot [#7087]
* Fixed a bug in integer validation of arrays that threw an error
when an array contained a mix of strings and integers.
* Fixed a bug in JupyterLab >= 4 and Jupyter Notebook >= 7 that
caused latex to not render in plotly charts.
* Use modern native ES6 import to load plotly.js bundle instead
of requirejs which is no longer under active development
- Release 5.23.0
## Updated
* Updated Plotly.js from version 2.32.0 to version 2.34.0. See
the plotly.js CHANGELOG for more information. These changes
are reflected in the auto-generated plotly.graph_objects
module. Notable changes include:
- Add subtitle attribute to layout.title to enable adding
subtitles to plots [#7012]
- Introduce "u" and "s" pseudo html tags to add partial
underline and strike-through styles to SVG text elements
[#7043]
- Add geometric mean functionality and 'geometric mean
ascending' + 'geometric mean descending' to category_order on
cartesian axes [#6223], with thanks to @acxz and @prabhathc
for the contribution!
- Add axis property ticklabelindex for drawing the label for
each minor tick n positions away from a major tick, with
thanks to @my-tien for the contribution! [#7036]
- Add property ticklabelstandoff and ticklabelshift to
cartesian axes to adjust positioning of tick labels, with
thanks to @my-tien for the contribution! [#7006]
- Add x0shift, x1shift, y0shift, y1shift to shapes to add
control over positioning of shape vertices on
(multi-)category axes, with thanks to @my-tien for the
contribution! [#7005]
* Specify Python version 3.8-3.11 for development virtual
environments and pin pytest at version 8.1.1 to match.
* Update IntegerValidator to handle extras option to allow
supporting additional keyword values. For example, 'bold' and
'normal' as well as integers as used in font weights [#4612].
- Refresh plotly-pr4622-np2.patch gh#plotly/plotly.py#4622
- Do not depend on jupyter metapackge for tests
-------------------------------------------------------------------
Thu Jul 18 08:19:01 UTC 2024 - Ben Greiner <code@bnavigator.de>

View File

@ -17,7 +17,7 @@
Name: python-plotly
Version: 5.22.0
Version: 5.24.1
Release: 0
Summary: Library for collaborative, interactive, publication-quality graphs
License: MIT
@ -58,7 +58,6 @@ BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module ipykernel}
BuildRequires: %{python_module ipython}
BuildRequires: %{python_module ipywidgets}
BuildRequires: %{python_module jupyter}
BuildRequires: %{python_module matplotlib}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pandas}
@ -67,7 +66,7 @@ BuildRequires: %{python_module pyshp}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module scikit-image}
BuildRequires: %{python_module scikit-image if %python-base < 3.13}
BuildRequires: %{python_module scipy}
BuildRequires: %{python_module statsmodels}
BuildRequires: %{python_module xarray}
@ -155,7 +154,9 @@ donttest="$donttest or test_matplotlylib"
donttest="$donttest or test_masked_constants_example"
# flaky timing error
donttest="$donttest or test_fast_track_finite_arrays"
%pytest plotly/tests/test_optional -k "not ($donttest)"
# no python313-scikit-image yet
python313_donttest=" or TestTernarycontour"
%pytest plotly/tests/test_optional -k "not ($donttest ${$python_donttest})"
%files %{python_files}
%license LICENSE.txt