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

0
votes
0answers
22 views

How to make the vertices move with the VertexRenderingFunction graphics when clicking and dragging vertices of a layered graph [duplicate]

I have read the suggested similar question here: VertexRenderingFunction (or EdgeRenderingFunction) with movable nodes? and Mr. Wizard's solution. Please could someone help me to apply his method to ...
2
votes
1answer
92 views

Aligning Overlay and GraphicsGrid plots

I need to make several plots displaying a Listplot overlaid with a Histogram and close to it (ideally even sharing X axis) a Plot. After reading answers to similar questions, I've got his far: ...
4
votes
2answers
99 views

How to draw a family of planes and its envelope?

Motivated by a question in MSE, I have the following question: How can I visualize the envelope of the family of planes $$ 2ax+2by-z+a^2+b^2=0, a,b\in\Bbb{R} $$ which is given by the ...
1
vote
0answers
62 views
1
vote
3answers
158 views

How can I make a summary of all the commands of Mathematica?

I would like to have a simple way to get summary information about all the many commands built into Mathematica. How could I do this? Is there a site I may refer to?
1
vote
1answer
82 views

how can I change the length/size ticks in a framed plot?

Err...Let me make clear the meaning of "the length of coordinate notation/marker". suppose I have frame1 by ...
0
votes
2answers
91 views

How can I make a 3D Plot with NDSolve?

I have a system of coupled ODEs which I am solving using Mathematica. I am solving these using NDSolve: ...
0
votes
0answers
50 views

Constantly rotating 3d contour plot (ideally as a .gif) [duplicate]

I came across a neat image for a graph, and I wanted to reproduce this as a .gif using Mathematica (I have the 9th home ...
3
votes
2answers
153 views

How to put triangle graphics on a plot of two seperate related lists?

For 7 different discharge energies, I have two gases (1. pure helium, 2. a helium oxygen mixture) being heated up. Those 14 settings then enter a tube, in which the system cools off. In the list ...
2
votes
2answers
104 views

GeoGraphics examples not running correctly

I'm trying to work with the new GeoGraphics functionality in Mathematica 10, starting with the example given here. None of the code seems to run well for me, though. I try to run the first command: ...
0
votes
1answer
75 views

Drawing a pair of lines to the x-axis and y-axis from a point along a curve

I have some plot like the following: Plot[Cos[x], {x, -10, 10}, AxesLabel -> {Style["x-axis", 12], Style["y-axis", 12]}, ImageSize -> {650, 650}] I'd like ...
0
votes
1answer
50 views

How can I modify text in a Graphics produced by Plot?

I have a Plot in a cell of a Mathematica notebook. The Plot was made with data that I no longer have. I want to modify the label of one of the axes, without running the plot command again (since I ...
6
votes
4answers
665 views

Combining 2D slices into a 3D plot

I am currently trying to combine several 2D plots into one big 3D plot. The 2D-plots are simply input-results from calculations (so these things have 2D coördinates (x,y)). The results depend on an ...
4
votes
1answer
123 views

The case of the disappearing locators

I have a complicated Manipulate that uses multiple locators, and need to document the output by saving the graphics to a file. The problem is that when I try to save the graphics, the locators ...
0
votes
0answers
27 views

Options from Graphics command [duplicate]

What do it mean $[[1]]$ in the following command? Graphics[...][[1]] How about the following command? ...
0
votes
1answer
91 views

Animating a Large Graphic Aborts, but Dynamic Works Fine

I'm trying to animate a large Graphics output, and it is returning $Aborted. I'm confused because when I use Dynamic and Slider, the graphics output is exactly what I want, i.e., I can 'animate' the ...
2
votes
1answer
75 views

Contourplot gives inaccurate ellipses

I'm trying to draw a family of ellipses with pre-defined foci as follows: ...
2
votes
3answers
246 views

Surface area of a cylinder [closed]

Evaluating expr = {Sin[t], Cos[t], Sin[p]}; ParametricPlot3D[expr, {t, 0, 2 π}, {p, 0, 2 π}] Area[expr, {t, 0, 2 π}, {p, 0, 2 π}] gives an area of ...
2
votes
2answers
167 views

How to set viewpoint Graphics3D to a different default orientation?

I'd like to have a SphericalPlot3D show up with the "z-axis" oriented horizontally by default. For example, in ...
2
votes
1answer
93 views

Font presentation difference between version 9 and version 10

I am trying to make presentation quality bar charts. As part of my effort, I used the code below. Updated to eliminate font specification. The problem appears to be a rendering difference, not a font ...
0
votes
0answers
64 views

How to extract data points from an image of a log log plot? [duplicate]

I have a picture of a log-log plot, taken from a paper and I want to extract the data points so I will be able to plot them again along with results of my own solution. I would appreciate your help. ...
6
votes
2answers
170 views

Color lines by angle

I would like to color some lines according to the following color function: ...
8
votes
1answer
194 views

Ghost trails with Animate?

What are some approaches to integrate Ghost trails methods with Animate, which otherwise seem more suited for exporting individual frames? For example, given this rootPlot function, how can trails ...
0
votes
2answers
105 views

Parametric Plots [continuous and discrete]: --showing parameter increase for multiple values of another parameter

In my problem, I am effectively plotting a parametric function that depends also on an outside parameter, e.g., the real/imaginary parts of ...
19
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.
0
votes
0answers
47 views

Changing the style of the Error Bars

I'm trying to get to change the length of the line at the top and the bottom of the error bars, but I have no idea how to do it. Can anyone help? Thanks!
4
votes
2answers
228 views

How to generate mesh and calculate volume of 3d object?

I saw a couple of posts dicretizing the graphic and generate DelaunayMesh to get volume of 3D object. The issue I'm having is that DelaunayMesh creates a bigger solid covering the original one, ...
0
votes
0answers
78 views

Dynamically update a graphic object in Mathematica [duplicate]

I was trying to simulate a bouncing ball (with no gravity) in a unit box and I managed to come up with a solution: ...
4
votes
1answer
177 views

VertexRenderingFunction (or EdgeRenderingFunction) with movable nodes?

In GraphPlot, I'd like to use VertexRenderingFunction (VRF) and have the resulting object behave the same way under dragging verticies as it does when I do not use VRF. The same issue occurs for ...
0
votes
1answer
52 views

EdgeRenderingFunction For 2 Vertices in a Loop

Assume there is a set of rules: set = {"A" -> "B", "B" -> "A", "B" -> "C", "C" -> "D", "D" -> "A", "C" -> "C"}; which we want to graph using ...
-3
votes
3answers
145 views

How can I plot a polygon with n sides inscribed in a circle and show the area?

I am doing some work on Archimedes and want to show what the area of a regular n-sided polygon is within a circle. My professor from two years ago was able to show it with an adjustable slider that ...
1
vote
1answer
72 views

ListPlot and AspectRatio

Here is a simple scenario ...
0
votes
1answer
149 views

Drawing an dodecahedron with vertexes at given coordinates

I want to draw an (edit)dodecahedron with the vertex in the following coordinates: ...
0
votes
1answer
70 views
2
votes
2answers
181 views

How to change the font color and size of tick labels by default

I've read Mike Honeychurch's answer here, and while it tells me how to change the font size on all of my plots, that size change affects (I think) all text on the plot. I would like to be able to make ...
15
votes
5answers
3k views

3D surface that looks like a virus

I have been recently using Mathematica for composing animations that are part of the supplementary information of my papers. I am currently trying to build an animation that involves a viral ...
0
votes
0answers
75 views

How to add a Bar Legend to a density plot over the surface of a sphere?

I have a function with variables (theta,phi) the spherical coordinates. I want to represent it as a density plot over the surface of a sphere. following an answer to a previous question Density ...
11
votes
4answers
487 views

Drawing a Gradient Between Two Circular Arcs

Suppose I wanted to use Mathematica graphics primitives to create a gradient of colors between two circular arcs. It's easy enough to make an area between two circles a solid color, but what if I ...
2
votes
2answers
165 views

A plot with labeled points in one plotting command?

For my work, I am examining the values of a complex function as I vary the input according to a real parameter, and I want to both give the general plot and the plot of specific points, with labels ...
4
votes
3answers
243 views

Problem about an ant walking up a hill

An ant is walking up a hill given by $f(x)$. At what point can it see a blade of grass. I've been working on this problem with Mathematica and by hand. Help with either would be fantastic. The ...
8
votes
1answer
190 views

How to display MeshRegion without vertices

I'm writing a library for handling very large and complicated (boundary) mesh regions on the order of ~150,000 vertices, ~450,000 edges, and ~300,000 triangles. The regions themselves are the cortical ...
1
vote
1answer
136 views

Adjusting contrast of a color scale with ListDensityPlot

I am using ListDensityPlot to plot data of the form {{x1,y1,z1},{x2,y2,z2}, …}. It results in the plot shown below. But I'd like to adjust the color scale contrast to better show the variations in ...
1
vote
2answers
75 views

combine two ParametricPlot3D plots

I have the following parametric equations ...
1
vote
1answer
77 views

LayeredGraphPlot: how to specify edge endpoints?

What directive within the LayeredGraphPlot command specifies where the edges attach to vertices? For example, instead of the left output below, I'd like to have the right one. ...
7
votes
2answers
236 views

How to make Inset graphics maintain relative sizes when combined

I am learning a little about Inset, but after trying all options, I can't get this to work. I need to inset separately made Graphics2D objects, into one main ...
0
votes
0answers
126 views

2d perspective projection of a sphere

I am looking for improved quality of 3d plots. I don't want to keep the object in Mathematica notebook - just export it to a .pdf file. Because it will be just one "side" of the plot I was thinking ...
4
votes
2answers
171 views

Why can't a Plot be rendered by Graphics if it's a member of a list?

I grabbed the code to render a gear from a Mathematica Demo, but I'm having difficulty reproducing the way it's to be used: ...
3
votes
0answers
70 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): ...