QuantStack / xplot

C++ backend for the bqplot 2-D plotting library
BSD 3-Clause "New" or "Revised" License
100 stars 17 forks source link

Add variadic to `add_axis` and `add_mark` #13

Open gouarin opened 7 years ago

gouarin commented 7 years ago

With this improvement, we can do

fig.add_axis(ax_x, ax_y, ax_z);

At the moment, we can only add one axis or one mark at a time.

SylvainCorlay commented 6 years ago

I like the new api to insert with initializer lists

vec.insert(vec.end(), {
    ax_x,
    ax_y,
    ax.z
});

I wonder if we should have a type of observed sequence with STL-style API.