Hi,

I think you could just glue your new xy-coords onto the piddle of old
ones and update the plot's dataset.

I guess it would be a lot faster to calculate all coords and then update
the plot only once, but I don't know if that is feasible for your case.
I am not sure if the change_dataset is available in the Simple module,
though.

Hope that helped

Ingo
On 11/06/2013 06:16 AM, mraptor wrote:
> hi,
>
> I'm finally starting to do my progressive drawing..  tried to use
> PDL::Graphics::Prima::Simple ... I just tried to draw points with
> line_plot... sequential..
> I'm having two problems at the moment :
>
> 1. It seems line_plot requires passing x,y coordinates as piddle..I
> store the final result in a piddle, but my idea was to draw the lines
> as I'm filling the data.. Is there a way to pass points xy-coord one
> pair at a time ?
>
> 2. Once I do the first line_plot the shell is stuck with :
>
> Twiddling plot; close window or press q or Q to resume
>
> Is there some way to allow to just plot the next point and return
> immediately control to the script, so I can calculate the next values.
>
> My process is calculate coords, plot it, calculate next , plot it...
> I see from the examples you pointed me too that they use timers to do
> progressive graph, I would like to do it as I go, not via timers,
> because it complicates things alot if I have to. (In fact timers wont
> work for me, because my final goal is multiple graph one after
> another)
>
> Can I do that with the Simple module OR I have to go deeper ;(
>
> Thanks and sorry for the long email...
>
> PS> My final idea is that I do :
> 1. Open graph
> 2. calc the coord
> 3. draw coord
> 4. goto 2, until the graph data for this data series is done
> 5. save the graph
> 6. close the graph
> 7. Prepare for new data series
> 8. goto 1
>
> (my ultimate solution would be to save after every step, so I can
> build animation later from those steps OR on the fly if possible)
>
> _______________________________________________
> Perldl mailing list
> [email protected]
> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
>


_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to