Ilya Zakharevich on Tue, 12 Nov 2019 08:35:46 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PATCH v2.11.1] High-resolution PS plotting


On Sun, Nov 10, 2019 at 03:08:19PM +0100, Bill Allombert wrote:
> > > Note that you can create SVG now with plotexport.

> Precisely. I was wondering if the problem also existed with SVG generation.

It looks like the low-precision problem is avoided with SVG, due to (≈l.2088)

    gen_draw(&pl, w, x, y, SVG_SCALE, SVG_SCALE);

(Only 1/SVG_SCALE = 2⁻¹⁰ is later rounded by "%.2f"; I see no reason
for such a strange code…)

The ability to see the fine structure may be much harder to implement
in SVG: one may need to
  • call gen_draw() several times;
  • implement some action-on-the-distance, so that the later calls
    only redraw the lines() commands, with different colors, and with
    decreasing widths… 

> > ℷ) I think tools for PS→PDF are much more common than those for SVG→PS.
> 
> True. However SVG->PDF is easy.

I know nothing about this…  (I use inkscape, but only occasionally…)

Ilya