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

44
votes
4answers
5k views

How to make the digits of π go around in a spiral like this?

Here is a start. MapIndexed[Text[Reverse[First[RealDigits[Pi,10,252]]][[Tr@#2]],#]&, Table[{t Cos[t],t Sin[t]},{t,0,16Pi,0.2}]]//Graphics
0
votes
2answers
75 views

Ticks on axes with a frame without frameticks [duplicate]

I would like to draw a simple 2D graphics with a frame, without any FrameTicks, but still having central axes with ticks. The code is this : ...
2
votes
1answer
89 views

How to draw a density (list) polar plot?

I have the function $P_{ns}$ which gives me the amplitude of a signal. The angles $\theta_B$ and $\phi_B$ are known. (25 and 180 for example) ...
2
votes
0answers
50 views

Buttons in graphics

I've created a workflow using Drawing Tools. It consists of Images, lines, and in some places I have cut and pasted Button objects. These buttons work fine if you paste directly into the Graphic ...
30
votes
3answers
3k views

Avoiding white lines inside filled area in RegionPlot exported as PDF or PS

When doing a RegionPlotand then exporting (or saving from the front end) as PDF or EPS, there are small white lines in the filling of the region. Here's an example ...
2
votes
2answers
140 views

White Edges Around Graphics Elements

Using the following code, I am able to generate a grayscale Voronoi diagram: ...
3
votes
1answer
112 views

Strange extrapolation in ListContourPlot?

I have some Table of {x,y,z} values (energy as a function of radial and azimuthal frequencies in a galaxy if you care to know): ...
6
votes
0answers
208 views

Mathematica 10.4 crashes when using too many font sizes

While working on How to make the digits of π around like this? I encountered a problem that Mathematica would crash at regular intervals with an internal self-test error, either ...
7
votes
4answers
470 views

Change appearance of ConvexHullMesh

I'm struggling to understand the behaviour of ConvexHullMesh (or rather the non-behaviour). I have a polynom p ...
2
votes
0answers
86 views

ElementMesh (rendering?) issue

The appearance of the following ElementMesh is bad as you can see for example on the inside surface of the shell. The same problem happens converting to a ...
1
vote
1answer
53 views

Building function where the output is graphic [closed]

I want to build a function, where the inputs are points and voronoimesh, and points. But, the output would be a graphics parameter. the code is following: ...
1
vote
0answers
50 views

Discrete color bar: height not adjusting

I am trying to adjust height of my color bar, but LegendMarkerSize is not doing what it is supposed to do. Code ...
126
votes
4answers
18k views

How to create word clouds?

Word clouds are rather useless fancy and visually appealing plots, where words are plotted with different sizes according to their frequency in a corpus. Many applications exist out there (Wordle, ...
6
votes
2answers
2k views

How to align rotated tick labels?

How can I align tick labels so the tick label text ends centered under the data point? Of Course it works fine with a rotation of 90 Degrees, but not with 45 or similar angles. I see an example of ...
3
votes
1answer
65 views
1
vote
1answer
52 views

Multiple Sphere from imported data

i have the centers, radius, and xyz coordinates of say 200 sphere that i'd like to plot in a box. I know how to do one sphere using this information and Graphics3D ...
11
votes
2answers
743 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 ...
3
votes
2answers
43 views

Trouble aligning Graphics with Image

I import the test image eloquently named "Tank2": img = ExampleData[{"TestImage", "Tank2"}] And do an extremly poor corner detection: ...
-1
votes
1answer
69 views

How to change the 3D Mesh resolution?

I need to fix the resolution of the mesh lines drawn on some surfaces, and currently I don't know how. Here's a MWE to work with (a simple sphere) : ...
1
vote
1answer
55 views

Labeling Points on a Plot

I have the following discrete map: \begin{equation} x_{n+1}=μ-x^4 \end{equation} for which I have used manipulate to see the way the system evolves depending on the real parameter $μ$: ...
2
votes
1answer
64 views

Is it possible to manipulate multiple graphs with one manipulate function? [closed]

I'm trying to find a way to manipulate a function and its derivative, but two variables of the function change. Is there a way to manipulate multiple graphs with the same set of parameters? Meaning, ...
0
votes
1answer
62 views

NDSolve Surface Plot to Compare Initial Values

I am trying to solve a system of differential equations which model reaction kinetics using NDSolve. I would like to generate a surface-plot of the function value as a function of time and the initial ...
6
votes
1answer
159 views

Making a 2D hexagonal mesh

There are a lot of answers for how to make a hexagonal mesh on a 3D surface but nothing on how to make a hexagonal mesh on a 2D surface. Can any provide code on how to do so? I am new to mathematica, ...
2
votes
1answer
148 views

MeshFunction at azimuthal angles for RegionPlot3D

Edit: I said "polar angle"... It should be "Azimuthal angle". Sorry. I want to plot a mesh line at a certain azimuthal angle in RegionPlot3D. My goal is to ...
3
votes
1answer
650 views

How to highlight various parts of a plot

I'd like to show students a graph of a function, say $(x,y)\mapsto\sqrt[3]{x^3+y^3}$, and then highlight its various properties connected with (non)differentiability at certain points etc. Having ...
0
votes
1answer
115 views

rescaling ColorFunction for ListContourPlot

I have this question that I've been struggling with. I came across many similar questions, but those solutions do not work for me. What I looked at: Example 1 Example 2 Example 3 I apologize if I ...
0
votes
2answers
104 views
45
votes
3answers
1k 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 ...
19
votes
2answers
681 views

How can I generate a legend for a BubbleChart?

Is there a way to make a nice disk radius legend (with linear or log scale) for a BubbleChart? Something like the following example should be built in:
2
votes
1answer
70 views

Change bond cutoff distance when plotting .xyz files

When plotting a molecule from a xyz data file, Mathematica automatically adds the bonds between the atoms. But in my case it adds too many bonds, not only between nearest neighbours but also between ...
2
votes
2answers
56 views
10
votes
6answers
1k views

can the color in MeshStyle be specified by a ColorFunction, such as “SunsetColors” for example. If so, what is the correct syntax?

This is an example given in Help: Plot3D[Sin[x y], {x, 0, 3}, {y, 0, 3}, MeshStyle -> Gray] Could this be changed to something like ...
4
votes
1answer
426 views

How can I improve ContourPlot to get smooth curve?

I am working on the ContourPlot to creat contour line of a InterpolatingFunction recently. This is my data. This is my simple ...
-1
votes
1answer
48 views

Add polygon as text before the polygon values [closed]

I have the following values of two polygons: ...
1
vote
0answers
44 views

PlotLabel with Graphics [closed]

Wondering why my PlotLabel does not show up? ...
30
votes
2answers
703 views

Graphics elements do not line up perfectly in exported PDFs

Bug introduced in version 9.0 and persisting through 10.4 Graphics elements do not always line up perfectly in exported PDFs using "Save As..." method. Take, for example: ...
13
votes
2answers
183 views

How to prevent Dynamic activity with colour swatches in V10+

Since version 10, if I type e.g. an RGBColor or simply a named color, a dynamic colour swatch is returned. Same goes for when you e.g. extract colours from a ...
6
votes
2answers
117 views

How to horizontally center a button in manipulate?

I just need to center a button in the MWE code below. Currently, all I try doesn't work. I would like to horizontally center the button relative to the sliders over it, for aesthetical reasons only. ...
1
vote
3answers
191 views
6
votes
1answer
1k views

How can I view the code implementing a built-in Mathematica function? [duplicate]

Possible Duplicate: What is the most convenient way to read definitions of in-memory symbols when we don’t have the source files? I would like to look at the code that implements ...
6
votes
2answers
121 views

How to introduce two successive points inside the FixedPointList for each cycle?

If we want to draw the attraction basins of an iteration function of the following type $$x_{k+1}=x_k-\frac{f(x_k)}{\frac{f(x_k)-f(w_k)}{x_k-w_k}},$$ where $w_k=x_k+b f(x_k)$, $b\in R-\{0\}$, we can ...
0
votes
0answers
34 views

How can I add an arbritrary label to a detail in a Plot or Plot3D?

I know about the graphics primitives Line and Point. I also know about Labeled, but there the placement of the label itself is confined to one out of {Bottom, Left, Top, Right}. I am looking for a ...
10
votes
1answer
88 views

Arrows from GraphicsComplex not converted to Normal form correctly

Bug introduced in 7.0 or earlier and persisting through 10.4.0 Show @ Graph[{1 -> 2, 2 -> 3}, Frame -> True] Normal @ % Is this a pure bug, or have ...
8
votes
1answer
122 views

FilledCurve inside GraphicsComplex doesn't interpret the integers as points

Bug introduced in V9.0 or earlier and persisting through V10.4.0. Here's an example: ...
5
votes
1answer
121 views

How to remove edges of HalfPlane

Bug introduced in 10.0 and fixed in 10.4.0 EdgeForm[] does not work. ...
9
votes
3answers
659 views

Distorted graphics when using custom ticks and AspectRatio -> Full

Bug introduced in 7.0.1 or earlier and partially persists through 10.4 or later I am having a problem using custom tick specifications along with ...
0
votes
2answers
85 views

Tracing an image to produce a vector graphic

I have a line-drawing that I would like to trace into a vector graphic, but cannot find documentation on how to perform some of the basic graphic functions necessary to do this. Here is an example ...
18
votes
0answers
387 views

More Ticks::ticks errors in AbsoluteOptions in v10

Bug introduced in 7.0 or earlier and persisting through 10.4 or later While the specific bug affecting Plot described in AbsoluteOptions prints error messages in ...