alandefreitas / matplotplusplus

Matplot++: A C++ Graphics Library for Data Visualization 📊🗾
https://alandefreitas.github.io/matplotplusplus/
MIT License
4.11k stars 313 forks source link

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

Open yongeePark opened 1 year ago

yongeePark commented 1 year ago

Bug category

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

```console error: base operand of ‘->’ has non-pointer type ‘std::vector >’ p1->line_width(2); ```

Platform

Environment Details:

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