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

3
votes
0answers
97 views

Graphics different between Mathematica 10.1 vs 9.0.1

When I create the following plot Graphics3D[{ Red, Arrowheads[0.05], Arrow[Tube[{{0, 0, 0}, {0, 0, 10}}, 0.2]] }] It looks like this in Mathematica 9 ...
23
votes
3answers
509 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 ...
0
votes
1answer
71 views

Label points the right way in a ContourPlot

I need desperately your help. I have the following code. My problem is that there is an error (you see it in the picture) and I can't find. Then Mathematica gives me for the global Min two wrong ...
1
vote
0answers
34 views

How can I stop PlotRangePadding from cutting off points in a ListPlot?

When I perform a 2D plot and want to highlight specific spots in the plane, ListPlot seems like a good idea. However once I want to get rid of the padding, my points are getting cut off. This is ...
0
votes
0answers
40 views

Error in FullGraphics V10.1 [duplicate]

Error in FullGraphics. FullGraphics[Plot[Sin[x], {x, 0, 2 Pi}]] Any idea why? Thanks
2
votes
1answer
78 views

How to change the atom size of LatticeData

Using the "Image" property of LatticeData, I can generate representation of lattice structures (like the first basic example ...
3
votes
4answers
93 views

Center Graphics elements relative to one another, rather than to the full figure

Suppose I wish to generate the following figure in Mathematica: My thought was to build it in parts. First, I make the plot: p = Plot[Sin[2 Pi x], {x, 0, 3}] ...
2
votes
1answer
65 views

How to hide and show graphics within Show[] function (in Manipulate wrapper)

There is a well documented way to "Dynamically Hide and Show Plots" (link). In the example 'Opacity' option is effectively used. Is there an efficient way to make the same functionality with "Show"? I ...
10
votes
1answer
221 views

How can I make FilledCurve smoother?

In How can I generate and randomly assign color to annular sectors? J.M. showed an interesting way to create a sector graphic using FilledCurve. Unfortunately it ...
1
vote
1answer
72 views

Add a portion of a unit circle

Consider: ...
2
votes
2answers
170 views

Gradient in a plotstyle

I'm trying to replicate the figure below. Now a nice first approach to do this is by using Mathematica, by making some kind of contourplot with circles and just add a gradient to the contourstyle. Now ...
1
vote
1answer
56 views

Delete Edges in Kpartite Graph

I need to make a K7,2 partite graph , with deleting 2 vertices and plus 2 more random edges , and after that my vertices should be green color. I made the graph K7,2 and deleted 2 vertices with this ...
7
votes
1answer
55 views

Setting an image as the background of a GeoGraphics image

It's easy to set the background of a GeoGraphics image to black, e.g., ...
1
vote
1answer
40 views

InfiniteLine Woes [closed]

I am puzzled that the InfiniteLine below intersects with only one of the two points. ...
6
votes
2answers
145 views

What does the AspectRatio option actually do?

The Documentation for AspectRatio on its first line under the "Details" section states: "AspectRatio determines the scaling for ...
2
votes
1answer
108 views

Coloring points via “TemperatureMap” [duplicate]

I have a collection of 3D points, and each is associated with a real number in [0,1]. A typical element looks like {{x,y,z},c} where ...
4
votes
1answer
103 views

AspectRatio option works unpredictably?

Let us examine the agreement between specified value for the AspectRatio option and the actual aspect ratio of generated plot. For this purpose I define a function ...
2
votes
1answer
53 views

How can I mark a point on a slider control?

I have a Slider control inside a Manipulate which spans some range of values, say from 0 to 10, like in: Manipulate[ Sin@x, {x, -2 Pi, 2 Pi} ] I would like ...
14
votes
0answers
209 views

Is FullGraphics an abandoned function? Is there an alternative?

FullGraphics hasn't worked entirely for a long time and the situation appears to be getting worse instead of better. In Mathematica 10.0 and 10.1 a simple usage ...
10
votes
2answers
151 views

How to align coordinate systems of Inset and enclosing Graphics?

Suppose we have some plot with AspectRatio not being Automatic: ...
9
votes
2answers
171 views

The envelope of a set of translated and rotated ellipses

I achieve a dynamic graphics by using Manipulate as follows: ...
5
votes
3answers
167 views

Constructing a grid from a matrix

I would like to construct a grid from a matrix. For example, one possible matrix is $M1$. $$M1= \begin{pmatrix} c2 & a1 & a1 & a1 & a1 & a1\\ a2 & b1 & c2 & a1 & ...
0
votes
2answers
150 views

Projection of triangles onto a sphere

I am trying to find the solid angle taken up by a large set of triangles around a central point. I have normalized the vertices of the triangles to a unit sphere around the central point, But the ...
0
votes
1answer
26 views

Dimension of plotting window vs PlotRange [duplicate]

For example, let's say I'm plotting this function, Plot[x, {x,-3,2}]. From the answer to this question the plot range is ...
1
vote
1answer
45 views

How to transform ListPlot ticks

I am sure that this is a standard question, but I have not been able to find it, either by a google search or by searching here on the Mathematica StackExchange. If I have a list plot defined by: ...
1
vote
0answers
62 views

Do not like quality of graphics when exported by Mathematica 9

I have been using Mathematica 9 to generate images of fractals for some time, and I noticed an uncomfortable phenomenon when I export the fractal image into a PDF. The lines get thick so that the ...
3
votes
2answers
102 views

Adding dynamic graphics to an animation

I'm making this demonstration that draws a parametric plot of the unit circle, while at the same time has two plots off to the side that draw the sine and cosine curves. I have this made up as an ...
1
vote
0answers
130 views

How do I fit the parameters describing a 3D object so that it best resembles its projection seen by an observer at a particular position?

I have data which are the longitudes (l) and latitudes (b) for the vertices of the edges of a shape as it appears to an observer at a given location (i.e., as it appears on the observer's sky plane). ...
4
votes
1answer
65 views

Is it possible to get the locations and dimensions of all boxes in a StandardForm expression renderation?

I can select all the boxes in a StandardForm rendered expression, like I've selected the left parenthesis in the picture above. Is it possible to get the positions and dimensions of all of these ...
2
votes
2answers
111 views

Bug: Export sometimes adds unwanted background to PDF files

Update: WRI confirmed that this is a known issue with Export on 2015-05-14. I am trying to export the outputs of some Plot expressions as PDF files for inclusion ...
0
votes
0answers
46 views

Distorted plot when I plot Sqrt[4 - x^2 - y^2] and -Sqrt[4 - x^2 - y^2 together [duplicate]

When I plot Sqrt[4 - x^2 - y^2] and -Sqrt[4 - x^2 - y^2] together,the z axis doesn't have ...
2
votes
2answers
75 views

Locator and manipulate

How can I achieve that the points on a Graphics element could be manipulated both by Locators (clicking and moving) and on the Manipulate panel as well. As you can see, only one of the methods work. ...
4
votes
1answer
98 views

Arrowheads not quite working as expected

I apologize if this question already has an answer, but my search has yielded no results, and I can't seem to figure out what's wrong with my code, so I thought I'd ask here. I'm using Mathematica 10: ...
2
votes
2answers
66 views

How do I execute a block of code multiple times? [closed]

Rudimentary pseudoconceptial question: I have a specific block of code that uses random variables and generates a plot at the end based on random code. I want my code to run 10 different times to get ...
1
vote
0answers
62 views

Graphics primitives - graphic design in _Mathematica_

I noticed this question in Graphic Design SE. I wondered whether it was possible / any easier in Mathematica? Image reporoduced below:
3
votes
1answer
61 views

Interactive graphics without creating a new cell

A simple graphics command creates a red circle and a blue square: Graphics[{Red, Disk[{0, 0}, 0.5], Blue, Rectangle[]}] I can "close this up" by double ...
2
votes
1answer
52 views

Import EPS and use as symbol

Is it possible to import a vector file & use as a symbol / plotmarker? I tried importing an EPS from Illustrator & assigning a name to it, but it failed. I would really like to be able to use ...
7
votes
3answers
193 views

How to combine ParametricPlot and RegionPlot?

I have two implicitly defined equations. I plot the implicit curve using parametric plot. ...
1
vote
2answers
87 views

How to plot a finite number of vectors?

does anybody knows how can I plot one or two vectors? (I don't want to plot the vectorial field)? My target is to plot the electric field produced by a circle on a point and show how the point moves. ...
0
votes
1answer
46 views

copy and paste legend with plot [closed]

how can I copy and paste legend with the graph from Mathematica 10.0 to Word. i can copy and paste a graph from Mathematica to word, but legend does not get copied. how do I copy paste the legend ?
4
votes
2answers
161 views

Overlapping Spheres with a Shared Blank Region

We have two similar overlapped spheres in a way that the distance between their centers is smaller than the sum of their radius (2R>a). As I show here: Also, we want to draw them in a such way that ...
3
votes
2answers
43 views

Undesired resizing with ImageMultiply and Masking

I want to systematically measure image intensity around each of the points in this 256x256 image. i0: I already have centroid locating code to figure out the centers of each of these points. To ...
14
votes
1answer
796 views

Solving and Animating Three Body Problem

I am attempting to solve a three-body problem using the Lagrange formalism, with a 1/r potential. I started off by defining T and U (kinetic and potential energy) as follows: ...
3
votes
2answers
151 views

How can one plot percentage chart of continuous functions?

I know you can plot percentages using stacked histograms like this: ...
4
votes
1answer
142 views

Lyapunov exponent plot

I am trying to create a Lyapunov exponent plot as a function of $\alpha$ for two functions: $$ f(x) = (\alpha + 1)x - \alpha x^{3} $$ and a piecewise function given by following Mathematica code: ...
1
vote
2answers
139 views

Rolling Disk Animation

I am trying to create an animation in Mathematica of a rolling disk outside a disk of equal radius. The following coding is what I have tried but without the one circle staying in a fixed position I ...
2
votes
1answer
128 views

Bifurcation diagram for Piecewise function

At the moment I am trying to create a bifurcation diagram of the discontinuous piecewise function given by following Mathematica code: ...
1
vote
1answer
99 views

Tick label is missing

These plots do not show the first tick label on the left: ...
7
votes
2answers
118 views

How to force DistributionChart to plot empty datasets?

Is there any way to force DistributionChart to display anything where there is an empty dataset? In the below example I'd like to have ...
0
votes
2answers
61 views

Control legend size when autoLegend is used with LinTicks [closed]

It looks simple, but I'm been trying to solve this issue for days, but no luck yet. So, here I used LinTicks, as customized option and another graphic option. Here ...