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

Can't change the linewidth and color of the plot3 figure. #330

Open
6 tasks
yongeePark opened this issue Feb 13, 2023 · 0 comments
Open
6 tasks

Can't change the linewidth and color of the plot3 figure. #330

yongeePark opened this issue Feb 13, 2023 · 0 comments

Comments

@yongeePark
Copy link

Bug category

  • [o] bug - compilation error
  • bug - compilation warning
  • bug - runtime error
  • bug - runtime warning
  • bug - logic error

Describe the bug
I tried to change the line width and color when using plot3 like the example in the below link.
https://alandefreitas.github.io/matplotplusplus/plot-types/line-plots/line-plot-3d/

But the error is occured when I compiled, and error message is below.

Steps to Reproduce

    std::vector<std::vector<double>> line_xset;
    std::vector<std::vector<double>> line_yset;
    std::vector<std::vector<double>> line_zset;
    auto p1 = ax->plot3(line_xset,line_yset,line_zset,"--gs");
    
    p1->line_width(2);

Output

error: base operand of ‘->’ has non-pointer type ‘std::vector<std::shared_ptr<matplot::line> >’
     p1->line_width(2);

Platform

  • [o] cross-platform issue - linux
  • cross-platform issue - windows
  • cross-platform issue - macos

Environment Details:

  • OS: Ubuntu
  • OS Version: 18.04
  • Compiler: cmake
  • Compiler version: 3.21

Additional context
Something strange is, I could change the linewidth and color in scatter3.

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