# Tagged Questions

Questions on the construction of 2D and 3D graphics through the direct use of primitives, directives, and functions. Include the graphics3d tag for questions specifically on 3D graphics. This tag is not to be used for basic questions on visualizing functions and lists using the various flavors of ...

1k views

### Plotting 2D image of functions of several variables

I have a function $f: \mathbb{R}^4 \to \mathbb{R}^2$, and I would like to plot the region $f([0,1]^4)$. Writing $f_1(s,t,u,v)$ and $f_2(s,t,u,v)$ for each coordinate of the output I tried using ...
2k views

### Quality control when exporting graphics into JPG

If I export a graphics from Mathematica to JPG format the image quality in JPG is visibly lower than that in Mathematica. Is it possible to control and eventually increase the quality of the exported ...
117 views

### How to add something like a shadow to my resulting figure? [duplicate]

after plotting this function: ...
260 views

### Using BarChart and pastel colors is there a method to get the labels to be the same color as the bar?

I am using version 8 and I have the following code: ...
332 views

### How to center the labels on a bar chart so they are directly under their respective bar? [duplicate]

I am using v8 and have the following code: BarChart[#, ChartStyle -> "Pastel", ChartLabels -> (Rotate[#, Pi/3] & /@ #2)] & @@ Transpose[totals4] ...
790 views

### Distance between 3D curves

I would like to determine the distance bewteen two representations of the Lorenz Attractor. I have two 3D representations for different initial conditions and I want to calculate the distance between ...
706 views

### position image combined with other graphics

Is there a way to directly transform an image? This works but seems klunky : Graphics[{Translate[ Raster@ImageData@image, {x,y}], .. other graphics objects .. }] ...
1k views

### How to calculate the area of a listplot [duplicate]

I need to calculate the area enclosed in a two-dimensional listplot and following an answer to a similar question I tried this way: ...
251 views

### Frame and white background not working (all other colours are fine)

Bug introduced in 6 and fixed in 7 Though my question my be related to this one, it doesn't look like it can easily be solved in the same way, so I hope not to be double-posting. I am trying to ...
2k views

### How do I draw a Circular Graph colored like this in Mathematica?

I must plot some data in radians and would like to use this image as a background to that graph. Although it looks good the lines are degraded in image form. thus the reason for this question. Can ...
268 views

### Why does a translation in the horizontal direction affect PointSize?

I'm running Mathematica 9.0.1 under Mac OSX. Not sure if this is a bug or whether I'm not supposed to apply a GeometricTransformation to a list containing graphic ...
2k views

### Combine absolute and relative (scaled) coordinates

I am using Inset to add an Epilog to a plot. The position of the images (in my case: framed numbers) can be specified as an ...
344 views

### Filling and Shading an Harmonic Curve

Suppose I have an equation plotted as shown: ...
399 views

### How to draw a contour diagram in Mathematica?

This answer at Math.SE contains a neat contour diagram created using Mathematica: What Mathematica functions I can use to draw diagrams like this?
1k views

### Manipulating plot of random iterated function system fractal

I'm generating the Sierpinski Gasket by implementing a chaos game in Mathematica. What I'd like to do is create an interactive manipulation with a slider, whereby moving it forward, plots all the ...
257 views

### Does it make sense to ask for the color of a Graphics3D “voxel”?

Say I generate some Graphics3D object, e.g.: Graphics3D[{Red, Sphere[{0, 0, 0}, 1], Blue, Sphere[{1, 0, 0}, 1]}] Does it make sense to ask for the color of a "...
2k views

### How to set image DPI? [duplicate]

For publications usually images in TIFF format are required in high resolutions. Where can I change settings for images that are being saved (using RMB click "Save Graphic As..."), so I don't need to ...
136 views

### Anti-aliasing won't work when there is PlotStyle command

I've found that if there is PlotStyle command in the input, anti-aliasing will not work. However if the Style code is ...
710 views

### How to show wireframes on imported Object / Mesh (.obj file)

I've managed to import a Wavefront (.obj) file and store it in a variable like so: ...
196 views

### Graphics3D: the box vertices do not coincide with triangle

I have drawn a triangle using Line graphics primitive and Graphics3D function: ...
326 views

### Preventing cell height adjustment when rotating 3D graphics

I have a large dataset of scattered x,y,z coordinates. I am trying to use ListPointPlot3D to identify outliers in 3D. This involves generating a plot and then ...
490 views

### How to crop graphics outside PlotRange with Show? [duplicate]

Is there an option or method to prevent Graphics from being displayed outside the PlotRange region? The problem is illustrated ...
194 views

### TextRecognize with crosses, circles and spaces results into oddities, why?

I am investigating this answer here about detecting crosses and circles with TextRecognize. I tried to solve this problem here by directly using the builtin command TextRecognize but it does not work ...
4k views

### How to draw some 2D curves in a 3D plot? [duplicate]

I want to plot several 2D curves (Sin[x] at y=0, Cos[x] at ...
835 views

### Convert Graph to Graphics

In Mathematica 9, a graph is returned as an object with head Graph: In[1]:= CompleteGraph[8] // Head Out[1]= Graph Right-...
529 views

### Exporting twice crashes Mathematica on Ubuntu 12.04 with Unity

I'm trying to work out if it's a Mathematica, Ubuntu or setup specific bug. I've asked some colleagues to try it on other Linuxes. This also crashes on OS X with Mathematica 8.0 and fails with 9.0, ...
1k views

### How can I get even steps on x and y axes in a plot?

I'm plotting the shortest distance from a point to a line using the following code ...
130 views

### Comparing data sets with fade transitions (Code speed-up)

I am using the utility below for data comparison. However, with my real (more complex) charts the processing is quite slow, so setting the Pause time under ...
886 views

### How can I create a 3D FilledCurve object?

FilledCurve can create a 2D graphics object; for example: ...
447 views

### Why do I get empty graph when adding 'Abs' function?

Can someone be so nice to provide some help for this particular situation? I try to plot a graph of a derivative which contains modulus. Without it the graph is drawn correctly: But when I wrap the ...
370 views

### Drawing Cylindrical Segment with Graphics3D

For a visualization I need a combination of 3 Cylindrical segments to visualize the incident, reflected and refracted beam of light at a surface. I got as far as the following code. ...
138 views

### How can I assign specific colors and sizes to 2D coordinate arrays being plotted with ListLogPlot?

I'd like to plot two sets of coordinates in two different arrays using ListLogPlot, and be able to individually specify the sizes and colors of the datapoints for each array. Things seem to work ...
2k views

### How can I change the size of the plot markers

I use ListPlot in order to plot four sets of data and also insert legends in my plot. Here is the Mathematica code ...
362 views

### rasterListContourPlot With PlotLegends in Mathematica 9

Jens Nöckel has write functions about (List) Contour Plots with rasterized shading in Mathematica: http://pages.uoregon.edu/noeckel/computernotes/Mathematica/rasterContourPlot.html It works well. ...
467 views

### How can I make a cell that contains an image which can be shifted?

When you're looking at some help pages, they may have cells containing images which can be shifted within the cell by left-clicking and dragging the mouse. Here is a sample: tutorial/...
466 views

### In what situation is the use of Directive required?

Sometimes I see code samples in the document or in this site using Directive, but I haven't yet find a case that Directive is ...
1k views

### How to insert a zoom inside the main plot

As the title indicates, I want to add inside the main plot (preferably at the lower left part) a zoom. Here is the corresponding Mathematica code: ...
535 views

### Exporting PDF file - incorrect graphic [closed]

I export graphics to PDF using: Export["/path/figure.pdf", plotname] It gives me more than enough quality for PDFLatex. But somehow, some exported plots have '...
422 views

### Generating a “flare” effect in Graphics3D?

I'm attempting to indicate that there is a point-source of light at some position in a Graphics3D-generated image. Is there any built-in tool to do this? My patch-work solution thus far has been to ...
328 views

### Difference of old GraphicsGraphics3DListSurfacePlot3D and the current ListSurfacePlot3D

Consider the following example data which creates the lines of a cylinder ...
209 views

### Finding the common areas of two contourplots

I used ListContourPlot to specify an area for which the function value is less than a number. For example consider the following areas: ...
160 views

### Statistical analysis of data-list with recurring x-values

I have a list of data as follows with repeated x-values: ...
1k views

### Arcs of rotation for angles

How can I draw trigonometric angles of any radian measure associated with the unit circle, complete with the x-axis and y-axis? How can I draw arcs of rotation inside positive or negative angles? Is ...
6k views

### How can this image (optical illusion) be created with Mathematica?

I came across this image the other day: and liked the sensation of it pulsing. I was wondering if anyone would know how to create something similar with Mathematica (without the Pink Floyd Dark ...
132 views

### Is there a way to prevent audio from becoming out of sync with graphics?

The code below could be used to say help Pre-Kindergarten and Kindergarten children learn about the numerals and numbers from one to 9. The problem is that this age group would be prone to just ...
412 views

### how to Export raster data as a tiff unmolested

I feel certain there is a simple answere here.. how do I export image data to a tiff without any scaling? I want to read back in the exact data. ...
162 views

### Use NotebookWrite with Graphics?

I am trying to use NotebookWrite to paste a plot into another notebook. The code looks something like: ...
176 views

### Hue function for negative arguments

I want to use Hue function for different colours with the argument being a function, i.e., Hue[f[i,j]] Now, ...