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

4
votes
1answer
110 views

Adjusting the vertices positions of a RandomGraph

By adopting the codes I got from the previous questions, here I intend to adjust the vertices positions of a RandomGraph. However, I only got an inactive graph, it even disappears suddenly when ...
7
votes
5answers
738 views

Find intersection of pairs of straight lines

I have a list of 24 points, in which 2 consecutive points (1st and 2nd, 3rd and 4th, ...) are supposed to form a line. ...
1
vote
1answer
277 views

Plot has red 'film', no error message

I am encountering really strange behavior: I wrote a function that plots values some data. After executing the code the resulting plot has the red 'error' colour, but only momentarily (maybe 0.1 sec). ...
0
votes
0answers
60 views

Change Default Font Color of Commands

I encountered to two problems with Mathematica: one: How can I change the default font color of commands and functions in Mathematica (which is black) to another color, so that whenever I wanted to ...
1
vote
3answers
103 views

Collapsible Group of Control Objects

I did what I believe was a thorough search on this topic, but still ended up fruitless. Apologies if there is a trivial solution to this. Is there a way to group control objects together to form ...
0
votes
2answers
106 views

How to create moving graphics that maintain shape [closed]

In the output code for the following graphic: ...
5
votes
1answer
111 views

Smarter way of manipulating plot style?

Say, I have a colorlist listColor={Black,Brown,Red,Cyan} Now, I have some Plot function that I can use this list: ...
1
vote
1answer
36 views

How to add more than one label to Histogram automatically

I have a huge data and I want to add two labels to the Histogram. the problem here is that the labels are calculated and added automatically to the histogram. for example if I have the following ...
2
votes
1answer
145 views

How to make custom discrete color data function

Attempting to make custom discrete color data function: my custom color: is it possible to use my custom color ...
2
votes
4answers
111 views

How to place more than one ChartLabel in a BarChart

I have the following data: ...
0
votes
0answers
121 views

3D isosurface plotting

I have a matrix of data of the form of 3 vectors R, Z, M1, M2, M3 ..., cylindric coordinates representing a measurement M of an axisymmetric hypersonic flow at the position R, Z (I don't measure along ...
1
vote
1answer
280 views

How to create these famous surfaces in topology with the desired color effects?

It was said such real objects of famous topological surfaces were plotted by the cooperation between mathematician Richard Palais and artist Luc Benard, and published as the cover page of Science ...
2
votes
1answer
58 views

Trying to combine an image with a Plot

I've got this picture: The image has a resolution of 2001x2001. The left most pixel has an x-value of -2, and the right most pixel has an x-value of 2. Same goes for the y-values. Now I am trying ...
3
votes
2answers
89 views

Labeling vertices by number in Graph: Getting text to display at the right size

Minor aesthetic question here. I was playing around with Graph's and decided to render a cute-looking family of directed graphs, with the vertices being the number ...
3
votes
3answers
138 views

How to change the number of markers in Plots?

Two questions, but I am not sure whether they are already answered or not. How can I create PlotMarkers (in ListLinePlot) with ...
0
votes
1answer
74 views

How to find a fit for a function?

I have the following function: ...
0
votes
2answers
135 views

How to control the layering of graphics displayed with Show

I am trying to combine two graphics objects using Show. The first one is an isosurface: ...
0
votes
4answers
81 views

Label each panel of Grid

I have a set of figures that I would like to show as grid for a publication. I currently just export the figure as an eps and use another software package to add Labels (A,B,C,D) to each panel of the ...
0
votes
1answer
71 views

Combine a contour plot of a conic and an inset with an polygon such as all its vertices are on the conic

I have a difficulty to programmatically adjust the size of a polygon within an inset of a conic (here I limit myself to a circle) in order to have all its vertices on the circle: ...
0
votes
2answers
94 views

ListLinePlot with colors from data

I am trying to color a simple 2D plot (using ListLinePlot) based on data in the form of 3-vectors. ...
1
vote
0answers
62 views

Tooltip over a picture & creating complex forms [closed]

I have some picture like the one seen below. Now, I'm trying to create some tooltip with some descriptions when moving with the mouse over a body part e.g. "this is the head", "This is the left arm" ...
0
votes
0answers
49 views

GraphicsGrid command

When we merge some colorful plots to a single image, with the command GraphicsGrid, the quality of output image will be lost, slightly. That is, for instance all ...
1
vote
0answers
44 views

Tick marks on curves [duplicate]

I would like to put tick marks on a curve. In this trivial example I have managed to put some ticks. ...
3
votes
1answer
73 views

ArrayPlot of square matrix: how does ColorFunction -> Automatic work?

Suppose you have the following: tt = Table[{i, j}, {i, 0, 10}, {j, 0, 10}] The table tt is a matrix of pairs, ...
10
votes
1answer
196 views

Using Mathematica to make a graphics array of circles

I need to make .svg file that contains an array of black circles that all have radii of 5 units ad are evenly spaced apart from each other 32 units. The difficulty in creating this design is the ...
3
votes
3answers
139 views

How can I find the boundary function in RegionPlot?

I have a problem with finding the function that gives the boundary curve in RegionPlot comamnd. I use the following code to make the regions in which two ...
1
vote
1answer
104 views

Intersecting/Overlapping Image Elements Counts?

I have what I believe should be a relatively easy problem to solve that I have not been able to find an elegant solution for. I need to compare two binary 2D images and count if any of the elements ...
0
votes
1answer
80 views

Showing Two Manipulated Plots Together

I want to show a scatter plot and bar chart next to each other in order to show the change in both factors for each county. The scatter plot shows life expectancy per county on the basis of income, ...
0
votes
1answer
55 views

Visualizing vectors [closed]

How to visualize a set of vectors with 3 coordinates $(x,y,z)$, e.g.,$(1,1,1), (1,-1,-1),(-1,1,-1),(-1,-1,1)$? In fact there are many of them. I try the function "Graphic3D" with the following code ...
10
votes
3answers
360 views

Showing the empty space in a Graphics3D plot

I would like to be able to visualize the empty space in a Graphics3D plot. For example, if I plot hexagonally close packed spheres using something like: ...
0
votes
2answers
114 views

Edit Automatic PlotRange

if I have a plot let us say Plot[x^2 - 5 x - 10, {x, 0, 8}] I want o check if there is a way to know the automatic plot range and to add or subtract from that ...
0
votes
0answers
33 views

How to generate Koch curve in mathematica [duplicate]

How is done in Mathematica to generate the curve? Exists in the fractal geometry Koch curve, consisting of partitioning a line segment of lngitud 1 in three equal parts, by removing the central part ...
1
vote
1answer
78 views

Show that three given vectors lie on a line, a plane, or span 3-space

Given three vectors, {2, 0, 0}, {0, 2, 2}, {2, 2, 3}, how could I see if they are all on the ...
2
votes
1answer
90 views

Cropping a non-cubic lattice unit cell

I would like to crop the hexagonal close-packed system as a hexagon and not as a cube. I would like to use the following volumetricPlot already given on this ...
3
votes
4answers
223 views

Interpolating a plot with missing values

With data = {{1, 1}, {2, 2}, {3, 3}, {4, 4}, {5, 5}, {6, 6}, {7, 5}, {8, 4}, {10, 3}, {10, 2}, {11, 1}} and ...
1
vote
1answer
102 views

Generate a set of 3D coordinates subject to constraints

Generating a set of random 3D coordinates is ok, e.g. ...
4
votes
3answers
213 views
3
votes
1answer
74 views

Why are graphics rendered as MathML when I set $PrePrint = MathMLForm?

For external usage, I set output in MathMLForm by using $PrePrint=MathMLForm Everything goes well but makes graphics rendered ...
2
votes
1answer
79 views

Convert Tube[BSplineCurve[…]] Graphics3D object to polygons [duplicate]

I wish to voxelize a complex shape composed of Tube[BSplineCurve[...]] objects, while maintaining the additional information of the (unvoxelated) surface normal ...
1
vote
2answers
108 views

How can I remove edges from my DiscretePlot?

By default, DiscretePlot displays "edges" along the sides and, prominently, align the top when ExtentSize -> Full is set. For ...
1
vote
1answer
51 views

Adding a legend to a MatrixPlot

I have produced this MatrixPlot: Rows refer to countries and columns to ranks. Row 1 refers to Norway with many 1 ranks, row 15 to Greece with many 15 ranks. Other countries are inbetween. I would ...
1
vote
1answer
47 views

VertexSize with GraphPlot [closed]

I'm constructing a graph using GraphPlot and I want some vertices to have a different size than others, like this: ...
2
votes
2answers
77 views

Graphical solution of a a two-variable system containing an equation and an inequality

I'm currently studying atmospheric-gravity waves and their dispersion relations. I want to have look at values of $(x,y)$ that solve the following system : \begin{equation}\label{}(1) \left\{ ...
2
votes
2answers
92 views

Under OS X, is there a way to view graphics output when running in the command line?

Being a long time unix shell person, I prefer Mathematica's command line interface, over the notebook. (command history, etc...) It just learned that on OS X, the cli is available as MathKernel. ...
3
votes
1answer
227 views

Make Plot look like Bloomberg terminal

I've always wanted to make my financial Plots look like a Bloomberg terminal. How would I go about making my chart look like one? I am talking specifically about ...
10
votes
2answers
552 views

2D Visualization of links and knots

I am trying to draw a picture using Mathematica of three loops linking together in 3D as follows. ...
1
vote
2answers
197 views

Projection of curve 3D (x,y,z) on the x-y plane

I have a following systeme : \begin{equation} \left\{ \begin{array}{rcr} (\beta+\frac{1}{2}\delta^{2})\nu_{1}(u)-\delta\nu_{2}(u)+\nu_{3}(u)& = &0\\ ...
10
votes
2answers
565 views

Rebuild a polygon so it doesn't self intersect

If you consider the following Polygon: ...
-1
votes
1answer
69 views

Finding intersection and graphing

1) How do I find the intersection of f[c_] := y^2 - 2 x^2 (x + 3) == c ((y + 1)^2 (y + 9) - x^2) between the plots of f[0] and f[2] I tried plugging-in numbers. ...
1
vote
1answer
73 views

Two graphs in the same plot [closed]

I have the following plots for two graphs: ...