Prev: A simple ParallelDo problem
Next: Export a vector
From: Benjamin Hell on 1 Apr 2010 07:00 Hi, for output purposes I'd like to control the size of the plotimage. This is no problem using ImageSize. In addition I want the whole plot including axeslabels, ticks and so on to upscale proportional to the imagesize. For example if I set ImageSize to 500 and the plot looks fine, I want that when setting it to 1000 all the fonts should be twice as high, the lines drawn should be twice as thick and so forth. But for exampe using the TicksStyle directive with a fixed number for the FontSize does not do this upscaling. The solution I have right now is that I obtain the current ImageSize via AbsoluteOptions and then do the upscaling manually for each critical Option. Let's again take TicksStyle as an example. Let's say a setting of TicksStyle->11 looks fine for ImageSize->500. Let furthermore be imagesize the current imagesize. Then I would set TicksStyle->(11*imagesize/500). This solution works, but if the ImageSize is set to Automatic it fails, because AbsoluteOptions returns Automatic for ImageSize and not the actual value. This is not a huge problem, because my current solution works, but I'd be glad to hear a more elegant way, if there is one. Perhaps this one involves less effort. Thanks in advance.
From: David Park on 2 Apr 2010 06:19 Try out Magnify. Plot[Sin[x], {x, 0, 2 \[Pi]}] Plot[Sin[x], {x, 0, 2 \[Pi]}] // Magnify[#, 2.0] & David Park djmpark(a)comcast.net http://home.comcast.net/~djmpark/ From: Benjamin Hell [mailto:hell(a)exoneon.de] Hi, for output purposes I'd like to control the size of the plotimage. This is no problem using ImageSize. In addition I want the whole plot including axeslabels, ticks and so on to upscale proportional to the imagesize. For example if I set ImageSize to 500 and the plot looks fine, I want that when setting it to 1000 all the fonts should be twice as high, the lines drawn should be twice as thick and so forth. But for exampe using the TicksStyle directive with a fixed number for the FontSize does not do this upscaling. The solution I have right now is that I obtain the current ImageSize via AbsoluteOptions and then do the upscaling manually for each critical Option. Let's again take TicksStyle as an example. Let's say a setting of TicksStyle->11 looks fine for ImageSize->500. Let furthermore be imagesize the current imagesize. Then I would set TicksStyle->(11*imagesize/500). This solution works, but if the ImageSize is set to Automatic it fails, because AbsoluteOptions returns Automatic for ImageSize and not the actual value. This is not a huge problem, because my current solution works, but I'd be glad to hear a more elegant way, if there is one. Perhaps this one involves less effort. Thanks in advance.
From: Christoph Lhotka on 2 Apr 2010 06:20 hello, I use Rasterize (with high resolution), when everything looks fine. this will also do the job, when resizing the image afterwards. christoph On 04/01/2010 01:00 PM, Benjamin Hell wrote: > Hi, > for output purposes I'd like to control the size of the plotimage. This > is no problem using ImageSize. In addition I want the whole plot > including axeslabels, ticks and so on to upscale proportional to the > imagesize. For example if I set ImageSize to 500 and the plot looks > fine, I want that when setting it to 1000 all the fonts should be twice > as high, the lines drawn should be twice as thick and so forth. But for > exampe using the TicksStyle directive with a fixed number for the > FontSize does not do this upscaling. > The solution I have right now is that I obtain the current ImageSize via > AbsoluteOptions and then do the upscaling manually for each critical > Option. Let's again take TicksStyle as an example. Let's say a setting > of TicksStyle->11 looks fine for ImageSize->500. Let furthermore be > imagesize the current imagesize. Then I would set > TicksStyle->(11*imagesize/500). This solution works, but if the > ImageSize is set to Automatic it fails, because AbsoluteOptions returns > Automatic for ImageSize and not the actual value. > This is not a huge problem, because my current solution works, but I'd > be glad to hear a more elegant way, if there is one. Perhaps this one > involves less effort. > > Thanks in advance. > > >
|
Pages: 1 Prev: A simple ParallelDo problem Next: Export a vector |