plotly / Plotly.jl

A Julia interface to the plot.ly plotting library and cloud services
Other
96 stars 19 forks source link

quiver throws error with null arrow #54

Closed rmsrosa closed 3 years ago

rmsrosa commented 3 years ago

Hi, I am trying to plot a vector field, but plotly is throwing an error when the vector is zero. No problem with the gr backend, only with plotly. I don't know whether it is a but or there is an argument to avoid that. Here is what happens:

julia> gr()
Plots.GRBackend()

julia> quiver([0.0], [0.0], quiver=([0.0],[0.0]))

julia> plotly()
Plots.PlotlyBackend()

julia> quiver([0.0], [0.0], quiver=([1.0],[1.0]))

julia> quiver([0.0], [0.0], quiver=([0.0],[0.0]))
Error showing value of type Plots.Plot{Plots.PlotlyBackend}:
ERROR: UndefRefError: access to undefined reference

I can show the full stack error if it helps. I am using Julia 1.5.3 and Plots 0.3.0

sglyon commented 3 years ago

Hi @rmsrosa

This looks to be an issue in the Plots.jl package.

The plotly backend over there is actually self contained and not related to Plotly.jl here. sorry about the confusion!