[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem plotting "N-d object"
From: |
Ben Abbott |
Subject: |
Re: problem plotting "N-d object" |
Date: |
Sat, 18 Feb 2012 18:41:16 -0500 |
On Feb 18, 2012, at 2:44 PM, CdeMills wrote:
> bpabbott wrote
>
>> I'm not really concerned about buggy code accidentally triggering this
>> functionality. At the same time, if such a change is accepted, then it
>> needs to be documented and demos should be needed.
>>
>> I'm not sure a new squeezable N-D array will do the job in a clean way.
>> Maybe I'm missing something? Are you thinking of overloading the plot
>> function?
>
> Buggy code should trigger error messages ASAP.
>
> Now, I often run simulations and collate 1D and 2D matrices into 3D, where
> the third dim is the run number. Auto-squeezing would be convenient, but I
> think we should have a flag to tell plot "I know my data are 3D, but please
> squeeze them." This way it is the INTENT to pass 3D data and have a 1D or 2D
> plot.
>
> Regards
>
> Pascal
Thats a good idea !
The plot function already accepts property name/value pairs. Is the syntax
below ok ?
plot (x, y, "-squeeze")
Since this feature may not be desired for all lines, the flag should only be
applied to the line object proceeding it.
plot (x1, y1, "-squeeze", x2, y2, "color", "r")
This would allow x1 and y1 to be squeezed (if needed) and produce a blue solid
line. The second line would not be squeezed and would produce a red solid line.
Look ok ?
Ben
- problem plotting "N-d object", Sergei Steshenko, 2012/02/17
- Re: problem plotting "N-d object", Ben Abbott, 2012/02/17
- Re: problem plotting "N-d object", Sergei Steshenko, 2012/02/17
- Re: problem plotting "N-d object", Jordi Gutiérrez Hermoso, 2012/02/17
- Re: problem plotting "N-d object", Ben Abbott, 2012/02/17
- Re: problem plotting "N-d object", Jordi Gutiérrez Hermoso, 2012/02/17
- Re: problem plotting "N-d object", CdeMills, 2012/02/17
- Re: problem plotting "N-d object", Ben Abbott, 2012/02/17
- Re: problem plotting "N-d object", CdeMills, 2012/02/18
- Re: problem plotting "N-d object",
Ben Abbott <=
- Re: problem plotting "N-d object", Jordi Gutiérrez Hermoso, 2012/02/18
- Re: problem plotting "N-d object", Sergei Steshenko, 2012/02/19
- Re: problem plotting "N-d object", Ben Abbott, 2012/02/19
- Re: problem plotting "N-d object", Sergei Steshenko, 2012/02/19
- Re: problem plotting "N-d object", Ben Abbott, 2012/02/19
- Re: problem plotting "N-d object", CdeMills, 2012/02/19
- Re: problem plotting "N-d object", Sergei Steshenko, 2012/02/19
- Re: problem plotting "N-d object", CdeMills, 2012/02/20
- Re: problem plotting "N-d object", Pascal A. Dupuis, 2012/02/20
- Re: problem plotting "N-d object", Jordi Gutiérrez Hermoso, 2012/02/20