PDLPorters / PDL-Graphics-Gnuplot

Gnuplot-based plotting backend for PDL
https://p3rl.org/PDL::Graphics::Gnuplot
Other
8 stars 7 forks source link

Support new terminal options #46

Closed d-lamb closed 8 years ago

d-lamb commented 8 years ago

It would be nice if there was an automatic way of supporting new terminal options. I'm not sure if there are any native gnuplot commands for this--I didn't see anything right away. For example, with Gnuplot 5.0 many terminals support a "background" option, but including that in P::G::G might break support for 4.x Gnuplots.

drzowie commented 8 years ago

I'll keep this open for now. Gnuplot itself doesn't have any good self-discovery beyond the version number mechanism, so it would be hard to adapt.

There are similar issues in 5.0 with curve options changing -- e.g. "dashtype" is now a curve option, rather than the older "dashed / no dashed" terminal option. (I just pushed up support for the new curve option)

drzowie commented 8 years ago

OK, I've updated all terminals that now support "background" and didn't before. I'm closing this. If the user is using an old gnuplot (e.g. 4.2) and gets an error, so be it. Soon I'll deprecate 4.x gnuplots, which should make that less of an issue.