Finding the right marker size for a scatter plot
问题 I want to plot a grid where each node in the grid is drawn by a dot, with a certain color code (taken from a vector stored in the node). the grid here varies in size depending on the size of the simulations I am running. I have yet to figure out the relationship between the canvas size and the marker size. Now I use the following formula: markersize = (figsize*figsize*dpi*dpi)/(xdim*ydim) plt.scatter(X, Y, s=markersize/3, marker='s', c=Z, cmap=cm.rainbow) plt.show() that is I square the