Hello,
I have a legend. There, the greek letters (e.g. Lambda) are displayed
correctly. Unfortunately not for the AxisLabel.
Here is a short example of the code.
###
import pyqtgraph as pg
from pyqtgraph.Qt import QtGui, QtCore
pg.setConfigOption('background', 'w')
pg.setConfigOption('foreground', 'k')
win = pg.GraphicsWindow(title="TITLE")
FONT_NAME = 'Nimbus Roman No9 L'
Font = QtGui.QFont(FONT_NAME)
win.setFont(Font)
plt = win.addPlot(title="")
leg = plt.addLegend(offset=(30, 30))
plt.plot([45,32],[5,20],pen=pg.mkPen('g', width=2),name='λ λ
<sub>λ</sub> Φ')
LabelStyle = {'color': '#000000','background-color': '#FFFFFF','font-size':
'40px','bold': False,'italic': False,'font-family': 'Nimbus Roman No9 L'}
plt.setLabel('left','LEFTAxisLabel λ λ <sub>λ</sub>
Φ','','', **LabelStyle)
plt.setLabel('bottom','BottomAxisLabel λ λ
<sub>λ</sub> Φ','','', **LabelStyle)
leg.setScale(2)
for item in leg.items:
for single_item in item:
#single_item.setScale(1)
if isinstance(single_item, pg.graphicsItems.LabelItem.LabelItem):
single_item.item.setFont(Font)
else:
pass
###
Thank you and best regards
Max
--
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/5126253c-a2eb-42ec-8376-527a9aef1a0c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.