Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add variadic to add_axis and add_mark #13

Open
gouarin opened this issue Sep 27, 2017 · 1 comment
Open

Add variadic to add_axis and add_mark #13

gouarin opened this issue Sep 27, 2017 · 1 comment

Comments

@gouarin
Copy link
Contributor

gouarin commented Sep 27, 2017

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 SylvainCorlay changed the title add variadic to add_axis and add_mark Add variadic to add_axis and add_mark Apr 7, 2018
@SylvainCorlay
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants