Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [rasterize]

The tag has no usage guidance.

0
votes
1answer
66 views

Best solution to insert text at defined position into image

What is the best solution to insert text at defined poition into image? I saw this question/answer but it does not help me for my examples below. I tried the following and find some strange ...
1
vote
1answer
23 views

`PlotRangePadding -> 0` still leaves 1 pixel border

The following should create a 50x50 image named /tmp/nopad.gif with mostly random colors and a red border: ...
2
votes
2answers
106 views

How to prerender / rasterize a graphic without losing location information

I have a Graphics object for a detailed plot that has too many points and regions in it to be quickly rendered, which I want to use as a background for a ...
3
votes
1answer
29 views

How to change size of an image in the background of a graph?

I'm trying to put a background image in a graph I've made but I can't figure out how to resize it so it fits the whole background, rather than just the section. The code I have so far is ...
0
votes
0answers
66 views
1
vote
1answer
34 views

Rasterize fails when called inside an NMinimize expression [duplicate]

I'm trying to do an NMinimize based on images where the images are rasterized Graphics expressions that are parametrized by the ...
0
votes
0answers
71 views

Raster ListDensityPlot with vector axes and labels

Is there an easy way to export a raster DensityPlot or ListDensityPlot but with vector axes, lines and label? I didn't find an easy answer in other questions.
2
votes
3answers
191 views

Masking an image with an annulus

I have an image where I would like to do 2 things: a) Put a disk of radius r on an specific $\{x,y\}$ position on the image such as the result is the original image within the disk and black color ...
1
vote
0answers
64 views

Rasterize: Work around ImageFormattingWidth being broken

Bug introduced in 11.1 or earilier and persisting through 11.3 Confirmed: CASE:4041910 Update The behavior described below only occurs inside the Documentation notebook or for cells with certain ...
0
votes
0answers
53 views

On the exporting process from Mathematica in vector graphic

1) Preamble: the problem So I was trying to make a plot of the visible spectrum of the hydrogen atom and I had lot of troubles with exporting it. First I want to point that I have to use this plot ...
0
votes
0answers
49 views
2
votes
0answers
65 views

How does PDF export handle text alignment?

Context: In digging into How can I get Mathematica to not mis-align plot labels when exporting to pdf without rasterizing the text?, and getting an answer to How does pdf export compute the size of ...
0
votes
1answer
60 views

Exporting MatrixForm Expression as Raster Image With Fixed Size [duplicate]

I have an array defined as such: ...
4
votes
0answers
62 views

ImagePadding -> Scaled inconsistency

Let us make a simple Graphics with Scaled ImagePadding specification and check the actual ...
6
votes
1answer
112 views

Should I rasterize plots to keep my notebook file small?

I often use Mathematica notebooks as an informal "lab notebook", plotting recent results in various tabs and such. I've noticed that these files can tend to get really large; for example, my Windows ...
0
votes
1answer
76 views

drawing consecutive lines / raster pattern

When I try to draw consecutive lines, I start to get aliasing artifacts in my image as my lines get thinner. Am I missing an option which may be causing this? I've tried ...
2
votes
0answers
169 views

Exporting rasterized graphics to svg does not create a single raster image in Mathematica 11

I am trying to export a rasterized density plot with vector axes and vector graphics overlayed. E.g. ...
8
votes
0answers
148 views

ImageSize bug in Rasterize

Bug introduced in 8 or earlier and persisting through 11.2.0 In version 11.0.0 I am getting incorrect sizes from Rasterize. The problem remains in 11.0.1 ...
0
votes
0answers
72 views

Export animation from mathematica [duplicate]

I am trying to export an animation, but got an error.. The code is very simple, the combine function is a little complex: Export["combin.gif", combine] Here is ...
8
votes
1answer
262 views

How to convert arbitrary raw boxes directly into String?

This question is motivated by the recent question about searching inside of the NB files. According to the Documentation, ToString expects a high-level WL ...
1
vote
1answer
169 views

Rasterize and Graphics, size difference

I am writing my own TreeForm function and for this I want to make sure that framed text boxes in Graphics do not overlap. First, ...
3
votes
1answer
263 views

Rasterize alters the quality of the figure

A quick 3D plot ...
3
votes
1answer
189 views

default RGB coloring

I am playing with some basic genetic algorithms to recreate input images by transparent plane figures (similar like here:). Everything would work great but the speed is terrible. I was looking for a ...
10
votes
0answers
168 views

Why is 13 the smaller height dimension of a Graphics?

It seems that you cannot get a Graphics image with a height dimension less than 13. Trying to draw something and then asking for ...
10
votes
1answer
208 views

A bug in Rasterize?

I plot a straight diagonal line and then simply rasterize it. Consider what happens (Mathematica 8.0.4, 10.2 and 11.1.1 on Windows 7 x64): ...
11
votes
0answers
293 views

How to rasterize a Graphics3D expression into an Image3D? [duplicate]

I'd like to make a 3d image from a 3d graphics. Unfortunately Rasterize@Graphics3D[Sphere[]] gives a 2d image, is there any function like a Rasterize3D that does ...
1
vote
1answer
268 views

Inset raster graphic position and size

I need to rasterize a very complicate plot and superimpose this to another plot. For example ...
3
votes
2answers
166 views

Overlay vector logarithmic plot and rasterized logarithmic ListPlot

I would like to produce a output PDF file of a log-linear plot obtain by composing the plot of an analytical function and a scatter plot of some random data. Since the random points are of the order ...
5
votes
1answer
158 views

Rasterize is influenced by WindowSize of the notebook where I run it

The two images show what I mean: Actually, the problem I have is that I need the images as in the second case, that's the whole expression in one row. In realty, the code is even more complex and is ...
11
votes
2answers
784 views

Rendering thousands of points

I am trying to render an image with some 120,000 Points. Technically it's just 10,000 points, plus their reflection, plus 5 rotations of both of those sets, but I'm ...
4
votes
1answer
378 views

RegionPlot with ColorFunction gives ugly frame labels

I was working on a simple 2D region plot: ...
4
votes
2answers
214 views

BarChart rasterized in EMF export

My boss wants several Mathematica graphics as vector graphics in EMF format. All my plots are exported neatly, except for a BarChart which gets rasterized for no apparent reason: ...
6
votes
5answers
687 views

What is the best way to draw a shaded table?

I'm trying to format a raster-style table with row and column headings and in which each cell is shaded according to the value in the cell, and the value of the cell is displayed in as text in a ...
1
vote
0answers
71 views
18
votes
2answers
1k views

Rasterize: Resolution option not working properly

Something about Rasterize which doesn't seem to work as intended. Recipe: Make some simple vector graphics: ...
13
votes
1answer
634 views

Raster to Image conversion problem

Bug introduced in v9 or earlier and persisting through v10.3.0 There are 3 ways to convert a Raster into an Image : only 1 ...
7
votes
1answer
2k views

Mathematica exported movie quality

I am generating an animation using: anim = ListPlot[X]; Export["anim.mov", anim, ImageResolution -> 800, Antialiasing -> True]; The ...
14
votes
2answers
798 views

Export Plots to PNG in Printout Style

When creating a plot in Mathematica 10 (OS X 10.9.4 and Win 7) the FrameLabel and Ticks are greyish and only the Frame itself is black (see Screenshot bellow). Only when exporting the plot to PDF all ...
18
votes
5answers
4k views

Export high resolution figure causes missing ticks

Bug persisting through 11.3 I understand that Mathematica has a bug when exporting images. The ticks are scaled not correctly when exporting at high resolution. For example: when you do: ...
5
votes
1answer
264 views

Parallel evaluation of Image and Rasterize problem

The following command: ParallelTable[Image[Graphics[{{Red, Disk[{5, 5}, 4]}}]], {i, 10}] shows a very strange behaviour. It starts a new Mathematica process on ...
11
votes
2answers
203 views

Rasterize uses default stylesheet if ImageSize is specified

Bug introduced in 8 or earlier and persisting through 11.0.1 If I make a style definition which affects GraphicsBox, the style is used by ...
8
votes
3answers
882 views

Poor quality Rasterize output when Background -> None

I am attempting to generate partially transparent images for PNG Export, but seem to run to the following issue. If I Rasterize ...
1
vote
1answer
503 views

How manipulate rasterized Graphics3D objects combined with non-rasterized objects

I am trying to construct a building with a manipulated sliding roof and other objects that can be manipulated. I have found that the manipulation of translations and rotations of graphics groups of ...
-3
votes
1answer
225 views

Mathematica output in ASCII or larger text size for the output?

I am trying to read the output of this code that has crosses, circles and spaces. For some reason, the output is in very-very small alphabets so I would like to get it in ASCII and/or in larger ...
5
votes
0answers
202 views

Raster with ColorFunction is blank when Dynamic Updating is disabled

UPDATE Today I was having these WaveletScalogram problems again. I think this is ultimately some kind of interaction issue with Dynamic. I have narrowed it down to ...
12
votes
2answers
2k views

Rasterizing a plot make axes ticks invisible [duplicate]

I've evaluated this code: plot = Plot[x, {x, 0, 10}]; g = Rasterize[plot, ImageResolution -> 300]; Everything looks good except the ticks (on the axes); they ...