Hi,

If you create the legend object and add it manually, then you can specify 
the position and size. There's an example of that in the Legend example 
<https://github.com/pyqtgraph/pyqtgraph/blob/master/examples/Legend.py> 
code. Something like:

#legend = plt.addLegend() # Don't use this, instead create and populate 
legend manually
l = pg.LegendItem((100,60), offset=(70,30))  # args are (size, offset)
l.setParentItem(plt.graphicsItem())   # Note we do NOT call plt.addItem in 
this case

Patrick

On Monday, 6 July 2020 23:26:24 UTC+9:30, Azar Jabbarli wrote:
>
> How can I set or change the *position *of the *legend *in pyqtgraph?
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/be46fffa-3d7f-4074-bce2-949b669d50a8o%40googlegroups.com.

Reply via email to