0
PyQtgraph Y轴标签以科学记数法显示。我不想让它成为科学记数法。什么是将标签更改为非科学的代码。PyQtgraph y轴标签非科学记数法
科学记数法 - 1.70(X1E + 06)
非科学记数法1700000(我想在非科学记数法来显示Y轴)。
from main()函数我调用addXYZ添加等高线,然后我调用Show2dPlot显示等高线图。
##### add the XY contour line to plot #####
def addXYZ(self, X, Y, Z):
self.plotwin.plot(X, Y, pen=(255,255,255))#cmap=cm.coolwarm)
##### Format 2D Plot #####
def Show2dPlot(self):
self.plotwin.setLogMode(x=False, y=False)
self.plotwin.showGrid(x=True, y=True)
self.plotwin.setLabel('left', "Easting")# units='A')
self.plotwin.setLabel('bottom', "Northing") #, units='s')
self.plotwin.setAspectLocked()
self.plotwin.set_scientific(False) #I'm getting error in set_scientific
使用'set_scientific(假)' – RaminNietzsche
@RaminNietzsche我得到NameError,PyQtgraph可能没有set_scientific。 :( –
你能分享你的代码的一些部分? – RaminNietzsche