Hi Alan

> Instead of multiplying the MM values by 72/25.4 within drivers like
> svg whose length units are pts, I intend instead to simply #define
> PLPLOT_DEFAULT_PTPI, PLPLOT_DEFAULT_WIDTH_PT, and
> PLPLOT_DEFAULT_HEIGHT_PT in plplotP.h and use those values in pt devices.

Works for me, I have no strong feelings here.

>
> It is also becoming pretty clear to me that plsc->xdpi and plsc->ydpi
> are misnomers since dots per inch normally would refer to pixels only.
> Thus, I will probably change those to plsc->xupi and plsc->yupi where
> "upi" stands for units per inch where units could be pixels, pts, mm,
> or whatever length unit is appropriate to the device.

In the documentation it says that dpi will only be used by raster
drivers and drivers which use real world units will ignore the dpi
measurements. I don't know if svg or ps or pdf drivers actually use
the dpi value at all, but given that statement in the docs then
leaving it as dpi or using ppi might be a better description.
In the API these variables are called xp and yp, which are not very
descriptive This is somewhere it might be worth making a change, where
I would suggest changing them to dpi or ppi.

Phil

------------------------------------------------------------------------------
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to