I have the following PSTricks code:





  % Axes
  \psaxes[Dx=32,Dy=32,labels=all,ticks=all,ticksize=-4pt 4pt,Ox=-128,Oy=-128]{-}(-128,-128)(-128,-128)(128,128)
  \uput{10pt}[70](-160,0){\psscalebox{1.25}{\itshape a}}
  \uput{10pt}[0](0,-160){\psscalebox{1.25}{\itshape b}}



However, I want the page to be 512x512px, and the axes 256x256px and centered in the page. I'm a tex n00b so I have no idea how to do this.

Thank you.

  • 1
    use unit=1bp (big point)
    – user2478
    Nov 27, 2016 at 20:14
  • I did that. Then I measured the length of an axis in Inkscape and still got 256pt instead of 256px. Also, this does not affect the page size, which I also want to change.
    – posfan12
    Nov 27, 2016 at 21:58
  • 1
    If you are using Inkscape, you are presumably generating vector graphics (e.g. PDF, EPS, SVG), so this question doesn't make sense. If you are generating PNG or JPG or something, it would make sense. Is that what you're trying to do? Raster graphics are usually measured in dimensions specified in pixels - you can scale them, but only with loss of quality (esp. if scaling up). Vector graphics aren't like that, although they may obviously not look good if scaled by too large or too small a factor. But they are not pixel-based so they scale without loss of quality.
    – cfr
    Nov 27, 2016 at 22:56
  • 1
    Use the standalone class rather than article, as illustrated in one of the answers to your previous question.
    – cfr
    Nov 27, 2016 at 22:57
  • Yes, I intend to export to PNG, but might use InkScape to do that because I am familiar with the tool. Or is there an easy way to do that using tex?
    – posfan12
    Nov 27, 2016 at 23:08


You must log in to answer this question.

Browse other questions tagged .