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

2
votes
1answer
35 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 ...
9
votes
1answer
150 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
60 views

Add a portion of a unit circle

Consider: ...
2
votes
2answers
139 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 ...
-3
votes
0answers
87 views

Swing of the pendulum [duplicate]

I would like to visualize a swing of the pendulum. I want to write a function springmass[z, nzigzag], which will draw the spring (line) and the swinging weight ...
1
vote
1answer
48 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 ...
6
votes
1answer
48 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
39 views

InfiniteLine Woes [on hold]

I am puzzled that the InfiniteLine below intersects with only one of the two points. ...
0
votes
0answers
30 views

How to draw a revolute joint and Prismatic joint? [on hold]

and I want to add a bar on the surface of the blue cubiod so that I can move the joint with the bar. Also it's best to add a function code(a code to describe how it moves)
2
votes
0answers
48 views

How can I fit the parameters describing a given 3D object such that its projected shape best matches the silhouette observed from a given location?

[I'm reposing my previous question to make it clearer]. 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 ...
0
votes
0answers
16 views

How to calculate whether a ray intersects an arbitrarily oriented bounding box? [migrated]

The bounding box is not axis-aligned. It can be rotated. I now have the origin of the ray, and direction and each coordinate of the eight vertices of the bounding box. what can I do to find out this ...
6
votes
2answers
142 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
102 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
100 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
44 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 ...
10
votes
0answers
130 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 ...
9
votes
2answers
129 views

How to align coordinate systems of Inset and enclosing Graphics?

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

The envelope of a set of translated and rotated ellipses

I achieve a dynamic graphics by using Manipulate as follows: ...
5
votes
3answers
157 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
132 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 ...
-1
votes
0answers
39 views

Window adjustment to see data points [closed]

Here is my code ...
0
votes
1answer
25 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
40 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
58 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
88 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
93 views

How do I find the edge of a 3D surface as it appears to an observer at a given location?

I have data which are the longitudes and latitudes for the vertices of the edges of a shape as it appears to an observer at a given location. I have some general idea what the original 3D shape is (a ...
4
votes
1answer
63 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
99 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
43 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
68 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
93 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
59 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
57 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
55 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
47 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
178 views

How to combine ParametricPlot and RegionPlot?

I have two implicitly defined equations. I plot the implicit curve using parametric plot. ...
1
vote
2answers
79 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
38 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
140 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
42 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
2answers
756 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
133 views

How can one plot percentage chart of continuous functions?

I know you can plot percentages using stacked histograms like this: ...
4
votes
1answer
92 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
127 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
117 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
88 views

Tick label is missing

These plots do not show the first tick label on the left: ...
7
votes
2answers
115 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
48 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 ...
0
votes
1answer
35 views

More than one graphic in Graphics command [closed]

another question regarding plotting. I'm sorry, but somehow it is superhard for me to use these. I have a Graphics plot and I want to add a Point to it. A circle is already working. But everything ...
1
vote
1answer
85 views

White Edges Around Graphics Elements

Using the following code, I am able to generate a grayscale Voronoi diagram: ...