Open aminya opened 1 year ago
I just ran into this warning recently as well. The following removed the runtime warnings for me:
auto fig_ax = fig->add_subplot(..., ...);
matplot::yrange(fig_ax, {-1,1});
fig_ax->plot(...,...);
Hope this helps.
Yes. Because of how pipes work there's no two-way communication between gnuplot and matplot. The only solution is to preemptively adjust the ranges to avoid the warnings. matplot could attempt to do that automatically internally, but the logic might become quite complex is some cases.
Bug category
Describe the bug
When building subplots with the gnuplot backend, even though the
ylim
is set, I still get this warning during the plot:Steps to Reproduce
Try using figure axes and and
add_subplot
Output
Platform
Environment Details:
Additional context