plot labels

Hello wxPython users,

I'm a newby on using wxpython for GUI programming so probably my
questions are relativly easy or sound very stupid my apologies for
that.

Currently i'm working on a application for a school project where i
have to make a scatter plot of datapoints. the syntax i use for that
is out of the tutorial posted on the wxpython wiki page.

line = PolyMarker(pointMatrix, legend='Wide Line',
colour=self.clrList[kleurCode], size=1,marker="circle")
panel = PlotCanvas(splitter)
splitter.AppendWindow(panel,500)
panel.Draw(PlotGraphics(chromosoomPlots[i], chromosoomNummer, "Value
X", "Value Y"))

the problem i'm having is that i have to plot the datapoints with
some kind of label. is this possible with wxpython and the syntax i
used?
And if so is it possible to print it vertically ?

thank's in advance for your time,

richard mendes

richard mendes wrote:

line = PolyMarker(pointMatrix, legend='Wide Line',
colour=self.clrList[kleurCode], size=1,marker="circle")
panel = PlotCanvas(splitter)
splitter.AppendWindow(panel,500)
panel.Draw(PlotGraphics(chromosoomPlots[i], chromosoomNummer, "Value
X", "Value Y"))

the problem i'm having is that i have to plot the datapoints with
some kind of label. is this possible with wxpython and the syntax i
used?
And if so is it possible to print it vertically ?

I don't think the PlotCanvas support this as all. It wouldn't be that hard to add, but if you're plotting, you're probably going to want other features in the future, so I'd consider a full-featured plotting library, like matplotlib:

For using it in a wxPython application, look for the "embedded in wx" examples, and/or a add-on package called wxmpl:

http://agni.phys.iit.edu/~kmcivor/wxmpl/

-Chris

ยทยทยท

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

thanks for your advice i will certainly look into those library's

Richard Mendes