From: Wonseok S. <ws...@st...> - 2009-04-29 22:09:24
|
So I have: >> from numpy import zeros >> C = zeros((11,11),'f') >> C[5,5] = 1.0 Then how can I plot this array with "plot ... with image"? What is the way to convert C into a type of data that can be fed into the gnuplot command "plot ... with image"? - Wonseok On Apr 29, 2009, at 0:37 , Benny Malengier wrote: > > > 2009/4/29 Wonseok Shin <ws...@st...> > Hello, > > Is there some way to use a gnuplot command "plot ... with image"? > This is a relatively new feature in gnuplot version 4.2 to draw a 2D > image, and probably by that reason I cannot easily find a good example > of its usage in gnuplot.py. > > Specifically, I want to to draw 2D NumPy array C[i, j] with "plot ... > with image". > > Newer commands are not directly available in gnuplot.py, but you can > send normal gnuplot commands to do everything gnuplot can handle. > > Benny > |