You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an old Roland GRX-300AG plotter, which uses (0, 0) as the centre-coordinate of the page. For this plotter, (-5340,-3120) is the bottom left when using A4 paper in landscape mode.
As a workaround, I'm thinking of leaving the x_range/y_range config alone and instead subtract half my plotter's max width & max height from each coordinate in the HPGL output - This offsetting should fix it, but was wondering if there's another way, thanks.
The text was updated successfully, but these errors were encountered:
Your use case should work, but a bit more work is needed on the configuration file, see the doc. The most important parameter is origin_location. You need to set it to the location on paper of the (0, 0) coordinates of your plotter (so that would half the paper size in your case, but it's not uncommon to have to compensate for some small offsets).
The x_range and y_range do not influence on the coordinates but just "crop" the result.
I have an old Roland GRX-300AG plotter, which uses (0, 0) as the centre-coordinate of the page. For this plotter, (-5340,-3120) is the bottom left when using A4 paper in landscape mode.
The default hp7475a a4 config and rectangle....
vpype rect 0cm 0cm 10cm 10cm layout -l -m 2cm a4 write --device hp7475a out.hpgl
results in HPGL output of....
IN;DF;PS4;SP1;PU2150,7476;PD2150,643,8983,643,8983,7476,2150,7476;PU11040,7721;SP0;IN;
i.e., 4 pairs of {x},{y} for the PD command. But if I alter the config to try and suit the Roland to be say,
and rerun, the result is incorrect - only 2 coordinates in the PD, and no expected negative values.
IN;DF;PS4;SP1;PU2150,3000;PD2150,643,5000,643;PU11040,7721;SP0;IN;
As a workaround, I'm thinking of leaving the x_range/y_range config alone and instead subtract half my plotter's max width & max height from each coordinate in the HPGL output - This offsetting should fix it, but was wondering if there's another way, thanks.
The text was updated successfully, but these errors were encountered: