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

1
vote
0answers
8 views

Creating a certain image (3D shadows, highlighted intersections)

I would like to learn how to code within Mathematica the following picture: I tried using ...
3
votes
1answer
105 views

How to show the projections of 3D orbit on the three primary planes

Perhaps this question has been asked before but even though I searched the site I did not find what I want. The code is rather simple: ...
0
votes
0answers
24 views

How do I change a 3d bspline curve to a polygon based graphic?

I have a graphics image generated with bsplines: Graphics3D[Tube[BSplineCurve[pts], 2]] I want to export this to a .stl file. To do so I know I need to modify ...
2
votes
0answers
106 views

Intersecting RegionPlots

Does the Mathematica graphics system have any concept of intersecting regionplots? I've found about intersecting graphics but not regionplots so far. For example, if I want to show the intersection of ...
5
votes
2answers
162 views

Export rotate bug in Mathematica v10

I think I've stumbled upon a bug in Mathematica v10.0.0 on linux. Rotate does not seem to play well with export. If I run: ...
4
votes
1answer
243 views

How does epilog position work in logplots?

I'm trying to use Epilog in my plots but the way that Epilog uses coordinate positions isn't making sense to me. As a minimal ...
0
votes
3answers
290 views

Mapping Contour Plot onto ListPlot3D (or by using color variations)

I am trying to overlay a contour plot I have created on a ListPlot3D graph. I have seen a few questions answered on this website that answer my basic question. ...
13
votes
0answers
215 views

More Ticks::ticks errors in AbsoluteOptions in v10

Bug introduced in 7.0 or earlier and persisting through 10.2 or later While the specific bug affecting Plot described in AbsoluteOptions prints error messages in ...
1
vote
0answers
32 views

Formatting the output of SubstitutionSystem to create a Cantor set [on hold]

I want to create a Cantor set using SubstitutionSystem, and plot it appropriately. This is the best I've been able to do so far: ...
2
votes
1answer
46 views

Dynamic update of displayed quantities on a Plot within manipulate

I'll admit that I only skimmed some other threads about this. They seem rather complicated in contrast to my simple problem. I have two lines in space defined by a two-by-two coefficient matrix. I ...
11
votes
4answers
270 views

How to make a ArrayPlot/MatrixPlot in polar coordinates?

in fact, I want to plot a image like: Fig1 the picture above is from a paper Zhou K.-J. et al. 2014 about ion up-flow of ionosphere in MATLAB there is a specialized function pcolor which could ...
1
vote
1answer
44 views

Labelling Vertices of a GraphicsComplex

I cannot figure out how to label the vertices of a GraphicsComplex, for example ...
7
votes
1answer
114 views

Exporting 2D & 3D graphics for use in Adobe Illustrator

I have recently (perhaps since Mathematica Version 10?) encountered a change in how PDF images are saved and how they behave after being loaded into Adobe Illustrator (v16.0.4 under Mac OS X 10.10.5). ...
1
vote
1answer
97 views

Three dimensional plot with CountryData

I wish to visualize a 3D layout of country data using the following code. How can the output be improved as currently it looks smeared to one side. ...
35
votes
3answers
817 views

How can we make publication-quality PlotMarkers without version 10?

Suppose that for certain reasons we are not yet using Mathematica version 10, or we have a version with buggy PlotMarkers. It is well known that the default markers ...
3
votes
2answers
64 views

How to specify different colors for edges going between the same two vertices in Graph?

Here is an example: edge1 = Property[1 -> 2, EdgeStyle -> Red]; edge2 = Property[1 -> 2, EdgeStyle -> Blue]; Graph[{edge1, edge2}] This does not ...
0
votes
0answers
65 views

Trying to rotate a graphic over a field of parallel lines

I have a 10x10 grid of unit squares (picture a partial coordinate grid bounded by (0,0) and (10,10)) given by ...
3
votes
2answers
69 views

how to use filling in Graphic plots

i'm going to plot some angles in Trigonometric circle by using Graphic command how can i use filling axes by different colors in this program or color between the angles? ...
5
votes
1answer
67 views

Tracing the line of motion of a point in graphics

I'm a beginner in mathematica. I'm making a nb that calculates the output angle of a fourbar mechanism based on the input angle. So the input is the length of the four linkages and the input angle of ...
3
votes
1answer
51 views

Restricting VectorPlot3D to a specific region

I'm trying to visualize the vector field on $\mathbb{R}^3$ given by the matrix $$\begin{pmatrix} 1 & 0 & 0\\ 0 & \cosh(t) & \sinh(t)\\ 0 & \sinh(t) & \cosh(t) \end{pmatrix},$$ ...
5
votes
2answers
109 views

Modifying the built in graphic format of colors

Can users modify the default format of colors in the front end? Red For example, dimensions, aspect ratio, EdgeForm? The motivation is the functional ...
0
votes
0answers
68 views

Can't get rid of vertical background color

I am trying to use GraphicsGrid, the background option is set to white, as well as for the separate graphs. But there are still grey stripes. What is the reason for these? And how can I get rid of ...
8
votes
1answer
190 views

How to make MousePosition more reliable

This takes a little patience to reproduce, but I got a screenshot of it in version 9 on Mac OS X 10.7.5: With a small Graphics object, it occasionally happens that ...
5
votes
9answers
544 views

Plotting a sequence of isosceles triangles of diminishing size

I try to plot the following graph using Graphics and Table. The graph consists of infinitely many isosceles triangles (without ...
21
votes
3answers
1k views

Finding a function that fits the shape of an image

How can I find a function that fits the given shape of an image? Or instead extract a point set from the shape and then find an interpolating function fits the shape. An example image is attached.
21
votes
3answers
694 views

How to plot an emission spectrum?

If I have a list of data with various wavelengths in nanometers, how would I plot them on a graph so it looks like this: So far I have managed to plot a spectrum in ...
13
votes
2answers
255 views

Weird behaviour when using Scale, Rotate in Graphics

Bug persisting through 10.2.0 (Edited to simplify drawing) I have a drawing of two tangent circles: ...
2
votes
0answers
91 views

How could I visualize a rotating cone within a sphere? [closed]

I am just learning Mathematica. How can I visualize a rotating cone within a sphere? The length of my cone is governed by following equation. ...
-1
votes
1answer
70 views

how to Draw the letter geometrically by points [duplicate]

I have the given letter below. I want to draw it geometrically by using trigonometry and other formulas.Help me draw the letter OR give me the idea to draw the letter of any language using formulas. ...
0
votes
0answers
34 views
12
votes
5answers
507 views
47
votes
1answer
2k views

How to construct a treemap using non-rectangles?

I've written the standard version of a tree map (a graphic that shows nested data) and I'm looking to improve on this layout by switching to different types of polygons or perhaps circles. Can anyone ...
6
votes
2answers
187 views

Using Greek $\LaTeX$ fonts

I want to use the $\LaTeX$ font in graphics. For text/numbers, this is easily done by FontFamily -> "CMU Serif" (on Ubuntu) like this: ...
3
votes
2answers
66 views

Color Polygons Using GeoListPlot works individually, but not together

I have following problem: and So far so good. But GeoListPlot[{test[[;; 2]]}, ImageSize -> 300] does nothing (produces a blank map). Similarly, the code ...
0
votes
1answer
44 views
7
votes
3answers
182 views

Adding colors to graphic objects made with the new function AnglePath

The MMA 10.2 help gives many examples of AnglePath lines of code but all of them are of the same color and I am quite at a loss to devise a method to add colors ...
0
votes
1answer
48 views

How to give more importance to a variable in a chart

I have two variables, x and y. x goes from 0 to 10, 10 being best. ...
1
vote
1answer
46 views

Show scientific form number in Epilog on a plot

I'd like to overlay a scientific form number on a ListPlot at a particular position. Simply using ...
1
vote
2answers
55 views

Formatting a complex ArrayPlot

I want to produce the following ArrayPlot programmatically: To produce the leftmost grid, I tried this: ...
2
votes
1answer
77 views

Adding labels to graphics

Maybe not a very descriptive title, but I wasn't sure how to pin it down. What I have is an array of vectors, a numerical example of which would be ...
7
votes
1answer
77 views

Where is the other half of my fourth degree Bézier curve?

Bug introduced in 10.0.0 and fixed in 10.2 When I enter the following command, half of the fourth-degree spline is missing from the graph (i.e. it doesn't touch the last point). Is this a bug in ...
7
votes
3answers
598 views

How do I plot the images of oriented curves under complex transformation?

I'm working on a complex transformation sketch that I'd like to create via mathematica. I'm working with the function $$w=z^2\tag{0},$$ where its real and imaginary parts are $u=x^2-y^2$ and $v=2xy$, ...
2
votes
2answers
93 views

How to create a bar graph that evolves in time to monitor a simulation

I imagine a random process that proceeds as follows: Suppose there are $n$ dice. ($n$ is pretty big). They exist in an arena. They are all bouncing around. They start in a random configuration. If ...
4
votes
2answers
153 views

Drawing contour integral diagrams

I am $\TeX$ writing notes on complex analysis, I need to use figures of contour paths to integrate on them, how can I plot them on Mathematica, something like this adding also the $\gamma_R$ ...
0
votes
0answers
35 views

ListPlot and ListLinePlot coloring bugs [duplicate]

I can't believe these bugs are still around. ListPlot[Transpose@Table[{n, n + 2}, {n, 1, 10}], Joined -> True, Mesh -> Full] ...
7
votes
3answers
428 views

How to draw timing diagram from a list of values?

What is the most elegant way to draw a timing diagram specified by a list of zeros and ones? In the following code I attempt to draw the clock pulse diagram, and I'd like to continue drawing the ...
6
votes
1answer
301 views

Dipolar magnetic field lines inside a cylinder

I'm drawing the magnetic field lines of a rotating dipole (magnetic field distorded by emission of radiation). Currently, my Mathematica 7.0 code is fully working, but I'm having a constraint which I ...
8
votes
1answer
151 views

How to make a Nebulabrot?

A Nebulabrot is a generalization of the Buddhabrot, a fractal rendering technique related to the Mandelbrot set that sort of looks like a meditating buddha. The Buddhabrot rendering technique was ...
11
votes
3answers
2k views

How to make a tight crop of a 3d plot?

I like Mathematica, but it's syntax baffles me. I am trying to figure out how to minimize the whitespace around a graphic. For example, ...
1
vote
0answers
72 views

Automatically sizing elements in a DistributionChart with custom ChartElementFunction

This is a follow-up to some related questions: 46770 and 60600. I'd like to make a DistributionChart where the elements are histograms with my own custom ...