Sisyphuss:  This is the approach I have taken with Qwt.jl:
 `plot(rand(100,5))` will plot 5 lines, `plot(rand(100,2),
colors=[:red,:blue])` will plot 2 lines (red/blue), 'subplot(rand(100,4))`
will create a 2x2 grid of subplots, one for each column, etc.

This interface has nothing to do with Qwt... I'm thinking about splitting
off the interface and wrapping several different underlying libraries with
that calling style, so people like me that want extremely terse/simple
method calls don't have to worry about implementation details of a specific
package.

On Mon, Aug 24, 2015 at 11:26 AM, Sisyphuss <[email protected]> wrote:

> Personally, I would like the following functionality:
> 1) `plot(X)`, where `X` is a high-dimension array, to plot each column of
> `X` on a single canvas (Matlab syntax);
> 2) `plot(X, c("red", "green", "blue"))` to plot each column with different
> color (the color vector is broadcast) (R syntax).
>
>
>
> On Monday, August 24, 2015 at 5:07:12 PM UTC+2, [email protected] wrote:
>>
>> PLplot cannot use new colors, except predefined before initialization,
>> during plotting. This makes usage of Compose (primitives drawing backend
>> package for Gadfly) somewhat hard because information about primitive
>> colors appear as as you parse plot structure. Moreover, PLplot has large
>> collection of high-level plotting functions (histograms, 3D plots, etc.)
>> which could be used as directly and not reconstructed from primitives.
>> Currently, I'm exploring different ways of using Gadfly syntax to handle
>> high-level PLplot functions.
>>
>> On Monday, August 24, 2015 at 10:16:19 AM UTC-4, Andreas Lobinger wrote:
>>>
>>> I had overlooked this:
>>>
>>> On Sunday, August 23, 2015 at 6:34:38 AM UTC+2, [email protected] wrote:
>>>>
>>>>
>>>> I currently wrapped routings which cover basic functionality and allow
>>>> to run most of examples. I've tried to make a Gadfly backend but
>>>> unfortunately the way PLplot works with colors makes it very hard to
>>>> integrate.
>>>>
>>>
>>> What is special about PLplot and colors?
>>>
>>

Reply via email to