To reproduce:
Open isocurve.py from the pyqtgraph examples and add the following after line 29:
gl = pg.GradientLegend((10,300), (10,30))
vb.addItem(gl)
Run isocurve.py and the gradient legend is drawn upside down (min at the top, max at the bottom, text upside down).
I had a look inside the GradientLegend class and couldn't see any reason there why it could be drawing like this, it's as if the painter is just drawing everything upside down for some reason.
Has anyone else noticed this or could it be something wrong with my setup (running Windows 7, Qt 4.8)?
Pat.
I believe there might be a bug with the GradientLegend drawing. When I try to add a gradient legend it is always drawn upside down.
To reproduce:
Open isocurve.py from the pyqtgraph examples and add the following after line 29:
gl = pg.GradientLegend((10,300), (10,30))
vb.addItem(gl)
Run isocurve.py and the gradient legend is drawn upside down (min at the top, max at the bottom, text upside down).
gl = pg.GradientLegend((10,300), (10,30))gl.setParentItem(vb)
gl = pg.GradientLegend((10,300), (10,30))vb.addItem(gl)
gl.scale(1, -1)
Cheers,
Pat.