Hi,
1. Multiline titles, labels and legends are not allowed right now. I guess
these could be specified as a list of strings instead of just a single
string, but that would take some hacking. You can have a try it if you
want.
2. I don't know why you cant set the background colour. I tried it a
couple of different ways and couldn't get it to work. Not sure why you
would want the background black. Maybe Robin or someone else can see the
problem.
3. Maybe histograms and polar plots sometime, but not soon. 3D is way out
of scope.
Regards,
Gordon Williams
RJS wrote:
Two questions:
1. Can one make a multi-line legend? "\n" is rendered as a little box...
plotLines.append(PolyLine(data, legend=file+"\n next",
colour=colours[fileIndex]))
I looked briefly at def _drawLegend
#draw legend txt
pnt= (trhc[0]+legendLHS+legendSymExt[0],
trhc[1]+s+lineHeight/2.-legendTextExt[1]/2)
dc.DrawText(o.getLegend(),pnt[0],pnt[1])
but I'm not sure...
2. How does one do black background/white text?
self.twoDplotCanvas.SetForegroundColour(wxColour(255, 255, 255))
self.twoDplotCanvas.SetBackgroundColour(wxColour(0,0,0))
...
self.twoDplotCanvas.Draw(
PlotGraphics([plotLines[0]],"Data plot", "Hz", "G"), xAxis
= None,
yAxis = None, dc = None)
has no effect, seemingly.
I liked the moving version too, but haven't needed it yet. Are you thinking
of polar or 3-D? I might be able to "contribute" for the next project,
otherwise I'll need to use Gnuplot or Chaco, I guess.