By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,402 Members | 1,047 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,402 IT Pros & Developers. It's quick & easy.

[Pmw] reusing a graph after deleting a curve

P: n/a

my question: is it possible to erase a graph, and reuse it?

like in

# x -> compute -> y
g=Pmw.Blt.Graph(); g.pack()
g.line_create(name,x,y)
# other computing -> a better y
# do something to g, erasing the previous plot
# [the above is the part that i cannot understand...]
g.line_create(name,x,y)

--
Lovercraft, bestia. -- Whip, in IFQ
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
giacomo boffi <gi***********@polimi.it> writes:
my question: is it possible to erase a graph, and reuse it?

like in

# x -> compute -> y
g=Pmw.Blt.Graph(); g.pack()
g.line_create(name,x,y)
# other computing -> a better y
# do something to g, erasing the previous plot
# [the above is the part that i cannot understand...]
g.line_create(name,x,y)

ok, i've got it:

g.element_configure(name,ydata=a_better_y)

if a Pmw.Blt hacker is listening, i cannot understand why on earth
it's named element_configure, and not line_configure (yes, lines and
bars are both elements, but...)

--
vabbụ parliamo d'altro -- Agnosco, in IFQ
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.