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 ...

learn more… | top users | synonyms

6
votes
2answers
301 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: ...
4
votes
2answers
166 views

Graphics3D: the box vertices do not coincide with triangle

I have drawn a triangle using Line graphics primitive and Graphics3D function: ...
5
votes
1answer
179 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 ...
1
vote
1answer
215 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 ...
0
votes
1answer
132 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 ...
5
votes
1answer
846 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 ...
6
votes
2answers
269 views

Convert Graph to Graphics

In Mathematica 9, a graph is returned as an object with head Graph: In[8]:= CompleteGraph[8] // Head Out[8]= Graph ...
6
votes
2answers
376 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, ...
1
vote
2answers
473 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 ...
1
vote
0answers
77 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 ...
11
votes
3answers
482 views

How can I create a 3D FilledCurve object?

FilledCurve can create a 2D graphics object; for example: ...
0
votes
1answer
185 views

How do I implement Dynamic Graphics? [closed]

I'm interested in learning to implement graphics like to those shown here My pendulum c++ code (source & csv's located here) outputs the positions of each mass into separate csv files. -== My ...
4
votes
2answers
229 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 ...
9
votes
2answers
271 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. ...
1
vote
1answer
98 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 ...
6
votes
1answer
875 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 ...
2
votes
1answer
276 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. ...
11
votes
2answers
391 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: ...
9
votes
2answers
282 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 ...
1
vote
1answer
302 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: ...
2
votes
1answer
282 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 ...
8
votes
3answers
333 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 ...
0
votes
2answers
255 views

Difference of old Graphics`Graphics3D`ListSurfacePlot3D and the current ListSurfacePlot3D

Consider the following example data which creates the lines of a cylinder ...
0
votes
3answers
178 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: ...
1
vote
1answer
139 views

Statistical analysis of data-list with recurring x-values

I have a list of data as follows with repeated x-values: ...
4
votes
4answers
563 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 ...
37
votes
5answers
4k 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 ...
5
votes
1answer
120 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 ...
3
votes
2answers
236 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. ...
3
votes
1answer
111 views

Use NotebookWrite with Graphics?

I am trying to use NotebookWrite to paste a plot into another notebook. The code looks something like: ...
0
votes
1answer
108 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, ...
15
votes
2answers
254 views

Upon PDF export, edgeless rectangles do not tile perfectly, and corners may be cut. Is this a bug?

Note: this problem is no longer present in version 10. Exporting the following as a PDF file ...
2
votes
2answers
545 views

distance between two curves

I try to compute the distance between two curves. I use the EuclideanDistance to do that. Here my code: ...
2
votes
1answer
233 views

Coloring with Hue for a function on a lattice grid

I wish to color a 2-dimensional lattice grid according to the value of a function at each lattice-node. More specifically, if I have 9 angles in a 3x3 array, ...
3
votes
1answer
234 views

Issue with ListDensityPlot when using logarithmic scale

I have got some frequency response data from a speaker measured with different incident angles between speaker and microphone taken in an anechoic chamber. The data can be found here. The whole ...
0
votes
2answers
284 views

Draw network graph and get the coordinates of each node

I would like to draw an undirected graph by specifying the nodes and the edges among them. This is currently done by, for example: ...
10
votes
2answers
355 views

Diagonal Tick Marks

I would like to draw diagonal tick marks around a plot, and simultaneously rotate the tick labels as well. I've mocked up what this would look like: Is there an easy way to do this in Mathematica? ...
6
votes
4answers
613 views

data visualization on a lattice grid

Is it possible to visualize an array whose elements are angles as actual angles on a lattice grid? E.g., say, if the input is: ...
7
votes
0answers
264 views

Caching of Graph Graphics

In this answer, Simon Woods concludes that when you display an expression with head graph more than once, something is getting stored somewhere. I looked into it too and found out this only happens if ...
9
votes
2answers
556 views

Customize your FrameTicks in a MATLAB way

The figure below is made by MATLAB. However, the scientific form of numbers in FrameTicks that how MATLAB deals with is quite different from that of Mathematica. ...
5
votes
1answer
146 views

Why do vertex labels disappear when I edit with drawing tools?

I'm trying to change the text and arrow style in GraphPlot using the drawing tool, but the the vertex labels disappear when I do that: ...
2
votes
1answer
129 views

double arrow in GraphPlot

Is it possible to combine two edges into one with a double arrow? For example: ...
4
votes
1answer
257 views

How can I extract the points from a ListSurfacePlot3D?

How can I get numerical output of ListSurfacePlot3D, i.e., a list of all the points, $(x,y,z)$ , used to construct the plot? Thanks to your help I now have a list of (x,y,z). But the new mesh is ...
23
votes
3answers
1k views

How to detect crosses and circles in 60x60 raster images?

I have hand-written 60 pixel times 60 pixel squares. I need to detect whether they are empty, x or circle. TextRecognize function fails. Is there some other function to process this kind of raster ...
16
votes
2answers
730 views

How can I draw a 3D cross-section of a 3-torus embedded in 4D Euclidean space?

I have a $3$-torus ($\mathbf S^1\times\mathbf S^1\times \mathbf S^1$) embedded in 4D Euclidean space. How can I draw the cross-section of this $3$-torus cut by a 3D Euclidean space in an arbitrary ...
8
votes
2answers
357 views

Combining Two Plots to Create a Zoomed Callout

I want to combine two images to create a zoomed callout, as illustrated below. The plot on the right is the zoomed in version of the boxed area on the left. The dotted lines connect the ...
0
votes
1answer
373 views

Colorbar doesn't appear

I have a list of data with dimensions $(2000,4)$. I plotted it using ListPointPlot3D, setting the fourth dimension as the color. As follows: ...
3
votes
3answers
101 views

How to use Show in case one of the graphics doesn't exist?

I tried to combine three and more graphics with the Show command; but sometimes there is no data, so some of the graphics are empty lists. I tried this: ...
2
votes
1answer
251 views

substitution rules for Penrose tiles

This page on W|A shows a nice substitution rule to draw kites and darts. I'd like to implement the rule in Mathematica, so I've drawn the original kite and its replacement (separately). I've also ...
4
votes
1answer
1k views

How do I display a histogram with normalized counts?

I have some data corresponding to real number distances: {200.04053, 200.232123, 156.3242,...}, and I would like to bin these values and display them as a histogram ...