Michael Haggerty wrote:
> Hi,
>
> The "matrix" option is currently not supported by Gnuplot.py. If you
> want to add it, start from the example of the "binary" option to
> _FileItem.
>
> It is of course possible to read the file into a Numeric array and
> then plot the array as a "Data()" PlotItem.
>
> Michael
>
> Eric Fernandez wrote:
>
>> I would like to plot 3d graph from data in a file, but reading data
>> in "matrix" mode.
>> [...]
>> Unfortunately, it reads the file as 'binary', not 'matrix'. I did not
>> find out how to pass the matrix option. Under gnuplot, it works with :
>>
>> splot('data_file') matrix
>>
>> is it possible to use it with gnuplot-py ?
>
>
Hi Michael
Thanks for your answer. I have added the option to the code, and it works !
I am actually working on MacOSX, so gp_macosx.py was also changed.
Please find the three files I have changed. Sorry to not make a real
patch for it, I prefer to send you the whole files, because I am not
really confident with diff.
Could you please check if this is correct (it works on MacOSX and Linux)
and add it to the CVS ? If there is another way to submit a patch,
please tell me, I shall try to send it more formally.
Have a nice Easter week-end.
Eric Fernandez
|