Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Updating a plot

$
0
0

@pjgorski wrote:

How to update an already created plot?

Let’s say we have a plotting function returning a handle like this one:
h=plot(x, y, seriestype:scatter)
And, afterwards, we decided to change the scatter points to a solid line.
I tried to do the following:

h.series_list[1].plotattributes[:seriestype]=:line
h

But it gives following error:

Error showing value of type Plots.Plot{Plots.PyPlotBackend}:
ERROR: BoundsError: attempt to access 0-element Array{Any,1} at index [1]

Any hints?

Posts: 4

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles