Discussion:
multiple CurvePlots and one Item List on the side
skidzo
2011-05-24 11:41:09 UTC
Permalink
Hi there,

I would like to have multiple CurvePlot instances configured like
shown in
the last class diagram image of the guiqwt.plot documentation
it has the headline <Building your own plot manager:>

http://packages.python.org/guiqwt/reference.html#module-guiqwt.plot

I would really like to do exactly this but with only the Item list
panel and with CurvePlot instead of ImagePlot.

It would be extremely helpful if there could be a minimal example
showing how to do this with the PlotManager
(I don't even need the Toolbar)

I tried to do this starting from the second example but now I
completely stuck in creating an Item list panel and adding the curve
items of the CurvePlot to it.

I know that I can get these Items with
<CurvePlotObject>.plot.items[1:self.ncurves+1]

Please help me out!!
skidzo
2011-05-28 14:36:01 UTC
Permalink
I looked over the modules baseplot, curve, label, and plot.

and maybe my brain is to slow for this.

I need to ask some questions to become a clear view of my problem.

Can I use CurvePlot and overload the make.legend to get an
PlotItemList containing more than one CurvePlot's Items?

If I do
itemList = PlotItemList(self)
self.layout.addWidget(itemList, 0, 2, 3, 2)

I can make an ItemList in the third column of the QGridLayout and on
it's left side I can arrange 6 Curve Plots but how can I connect this
together in one QWidget?

I want' to be able to deselect Items from the PlotItemList, while in
the same time my application updates the data on the selected (and
deselected curves).

I would be really happy if someone could give me an advise or hint
with this...

Cheers,

Johannes
skidzo
2011-05-31 08:09:49 UTC
Permalink
My mind was really to slow, i managed to have one itemlist on the side
working together with as many curveplots I like...

yet I did not find out how to arrange the PlotItemList to show all the
itemlists of all curveplots.

but so far the situation is acceptable.
Post by skidzo
I looked over the modules baseplot, curve, label, and plot.
and maybe my brain is to slow for this.
I need to ask some questions to become a clear view of my problem.
Can I use CurvePlot and overload the make.legend to get an
PlotItemList containing more than one CurvePlot's Items?
If I do
        itemList = PlotItemList(self)
        self.layout.addWidget(itemList, 0, 2, 3, 2)
I can make an ItemList in the third column of the QGridLayout and on
it's left side I can arrange 6 Curve Plots but how can I connect this
together in one QWidget?
I want' to be able to deselect Items from the PlotItemList, while in
the same time my application updates the data on the selected (and
deselected curves).
I would be really happy if someone could give me an advise or hint
with this...
Cheers,
Johannes
Loading...