as usual, I am using wxPython + MatPlotLib to create nice interfaces
+ nice plots. However, I'm having a problem (probably I am unable to find=
the right code to do it) in putting together 2 plots. This is the situati=
In some way, I have calculated a CDF of a Numeric array, and I can easily=
plot it using the sequence:
self.fig =3D Figure()
self.canvas =3D FigureCanvas(self, -1, self.fig)
axdata =3D self.fig.add_subplot(111)
mp =3D axdata.plot(CDF,ArrayFromZeroToOne,'b-')
Now, I would like to add the histogram of my array to the same figure, bu=
I'm getting nowhere. The histogram is not displayed.
Note that I am *not* importing Pylab or similar, I use:
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as Figure=
from matplotlib.backends.backend_wx import NavigationToolbar2Wx
from matplotlib.figure import Figure
Is there a way to add an histogram to my subplot?
Thank you for every suggestion.
From: John Hunter <jdhunter@ac...> - 2005-05-11 15:06:14
>>>>> "andrea" == andrea gavana <andrea_gavana@...> writes:
andrea> Is there a way to add an histogram to my subplot?
Make sure ax.hold(True) is set, and then call hist after plot