| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 6 months |
| seen | Apr 17 at 18:32 | |
| stats | profile views | 8 |
|
Dec 26 |
asked | Second level depth pure function? |
|
Nov 24 |
awarded | Scholar |
|
Nov 24 |
accepted | Rasterizing a plot make axes ticks invisible |
|
Nov 19 |
awarded | Teacher |
|
Nov 19 |
answered | Specifying parts from lists for plotting using Show |
|
Nov 19 |
awarded | Editor |
|
Nov 19 |
awarded | Supporter |
|
Nov 19 |
comment |
Rasterizing a plot make axes ticks invisible A great trick:) One question: what can I do with axe/ticks color intensity of rasterized version? As I see that, if, let's say, I run this code: Rasterize[
First@ImportString[ExportString[Show[plot, ImageSize -> 100], "PDF"]] , ImageResolution -> 500] I get image with preserved proportion but axe ant ticks line width is not the same proportional. If I scale the rasterized version up to 5 times I see axes and ticks with line width as If they appear on default plot output. In other words, everything is great except the fact that axes and ticks get "transparent" due to antialiasing. |
|
Nov 19 |
comment |
Rasterizing a plot make axes ticks invisible Firstly I got this problem while Export[] (I have to make high-resolution .png for including in LaTeX). But then I found similar behaviour of Rasterize[] and since it's simpler to reproduce in Mathematica (nothing to do with creating files and littering the filesystem, everything is seen on the screen), I've chosen Rasterize[] for a question:) |
|
Nov 19 |
comment |
Rasterizing a plot make axes ticks invisible Well, I don't really know why and don't know whether it's intentional but simultanesous use of ImageResolution and RasterSize have no use in my case, seems that Raster Size "kills" ImageResolution. |
|
Nov 19 |
comment |
Rasterizing a plot make axes ticks invisible First of all, ImageSize and ImageResolution used together at the same level have no sense (seems that ImageSize has more priority), try to change ImageResolution and you will get no difference. You would rather have said something of: Rasterize[Show[plot, ImageSize-> 500], ImageResolution -> 150] However the main problem still remains as I've described: look at the axes ticks and you will notice dramatical difference between what Mathematica draws on the screen by default and what you get after Rasterize[]. |
|
Nov 18 |
awarded | Student |
|
Nov 18 |
asked | Rasterizing a plot make axes ticks invisible |