Hi Partick, It works well when we set the following parameters for the GLSurfacePlotItem :
computeNormals=False, smooth=False However, I have a problem with the colorMap since the default mapping seems to be for data which is in [-1,1]. I have to change the mapping for an arbitrary data range since in general, I do not know the range but I can retrieve it when the code runs. I looked to the documentation for the colorMap <http://www.pyqtgraph.org/documentation/widgets/imageview.html?highlight=colormap#pyqtgraph.ImageView.setColorMap> but I barely understood how to define it and set in GLSurfacePlotItem. Besides, I want to add x,y axes which are fixed and they are necessary for getting meaning to the surface plot. Any recommendations will be appreciated. Best, Mostafa On Tuesday, April 23, 2019 at 11:44:41 PM UTC-4, Patrick wrote: > > Hi, > > I don't use the 3D capabilities of pyqtgraph, but the example under 3D > Graphics/Surface Plot ( > https://github.com/pyqtgraph/pyqtgraph/blob/develop/examples/GLSurfacePlot.py) > > has an animated 3D surface that looks to be rendering at 100+ FPS on my > machine. Does that help? Otherwise if you can post a minimum working > example then we might be able to suggest some ideas. > > Patrick > > On Tuesday, 23 April 2019 13:27:59 UTC+9:30, Mostafa wrote: >> >> Hello, >> >> My eventual goal is to have a surface like the one that Matlab has for >> plotting a 2D array of size N by M. For my application, M and N are not >> greater than 256, so the greatest matrix I have has less than 100K entries. >> However, I could not find a remedy for the slow updating of the >> GLSurfacePlotItem. Basically, as the human eye perception is limited, the >> frame update speed should be around 25-30 frame per second. Besides, the >> surface plot is much far away from the nice representation in Matlab where >> the plot has x and y axes with an option to add a colorbar to show the >> color code values. There should be tricks to speed up the process similar >> to the suggestion for 2D plot to disable autoscale in order to update the >> graph much faster. >> >> Any idea? >> >> Best regards, >> Mostafa >> >> > -- 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/2acf0d8e-b4e9-4c6b-8be0-95a19afd09a2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
