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

Axis properties not changing graph's behavior #60

Open
grassjelly opened this issue Jul 13, 2020 · 0 comments
Open

Axis properties not changing graph's behavior #60

grassjelly opened this issue Jul 13, 2020 · 0 comments

Comments

@grassjelly
Copy link

I'm trying to modify my graph's axis properties as the label and grid lines don't appear. Assigned some numbers but doesn't seem to change anything on the graph.

Here's my code. Data is updated dynamically in a callback where I pass a vector to line.x and line.y:

xpl::figure fig;
xpl::linear_scale sx, sy;
xpl::lines line(sx, sy);
line.colors = std::vector<std::string>({"blue"});

xpl::axis hx(sx), hy(sy);
hx.grid_lines = "solid";
hx.label = "x";
hx.label = "y";
hx.color = "#060482";

hx.grid_color = "#060482";
hy.orientation = "vertical";
hy.grid_lines = "solid";
hy.side = "left";

fig.add_axis(hx);
fig.add_axis(hy);

fig.add_mark(line);
fig

Output graph:
Screenshot from 2020-07-13 13-19-17

Here's my package versions running on Ubuntu 18.04 running on conda version 4.8.3
Screenshot from 2020-07-13 13-17-27

Thank you!

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

No branches or pull requests

1 participant