How to plot 3D function as 2D colormap in python?

后端 未结 4 683
半阙折子戏
半阙折子戏 2020-12-30 04:30

Are there any python libraries that will let me plot z = f(x,y) where z is represented as the color in a densely rasterized image (as opposed to the color of a bunch of scat

4条回答
  •  無奈伤痛
    2020-12-30 04:41

    Take a look at the documentation for pcolor or imshow in matplotlib.

    Another good place to start is take a look at the matplotlib gallery and see if there is a plot type that matches what you are looking for and then use the sample code as a jumping off point for your own work:

    http://matplotlib.sourceforge.net/gallery.html

提交回复
热议问题