-
-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Plotly backend does not support passing arrays as levels in contour plot #3356
Comments
anowacki
added a commit
to anowacki/Plots.jl
that referenced
this issue
Aug 19, 2021
Plotly does not support arbitrary contour values, but can plot specific contours if they are an equally-spaced range. This commit implements the plotting of contours if the `levels` keyword argument is passed an `AbstractRange`, or if a set of arbitrary values are passed. In the latter case, however, since this is not supported by Plotly, a range based on the first and last values of the collection passed in is created and used to define the contours. A warning is then issued to the user. Otherwise, any other types are assumed to be number-like and adjusted as previously. Note that Plotly does not guarantee the exact number of contours will be used. This partly addresses JuliaPlots#3356. See plotly/plotly.js#4503 (Plotly issue tracking the ability to set arbitrary contours).
anowacki
added a commit
to anowacki/Plots.jl
that referenced
this issue
Aug 20, 2021
Plotly does not support arbitrary contour values, but can plot specific contours if they are an equally-spaced range. This commit implements the plotting of contours if the `levels` keyword argument is passed an `AbstractRange`, or if a set of arbitrary values are passed. In the latter case, however, since this is not supported by Plotly, a range based on the first and last values of the collection passed in is created and used to define the contours. A warning is then issued to the user. Otherwise, any other types are assumed to be number-like and adjusted as previously. Note that Plotly does not guarantee the exact number of contours will be used. This partly addresses JuliaPlots#3356. See plotly/plotly.js#4503 (Plotly issue tracking the ability to set arbitrary contours).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Details
Backends
This bug occurs on ( insert
x
below )Versions
Plots.jl version: v1.10.6
Backend version (
]st -m
):[f0f68f2c] PlotlyJS v0.14.1
Output of
versioninfo()
:MWE:
Result:
Suspicious line:
Plots.jl/src/backends/plotly.jl
Line 589 in f76390c
The text was updated successfully, but these errors were encountered: