Tagged Questions

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

5
votes
1answer
185 views

Problem When Trying to Export Graphics with Transparency to SVG

I'm trying to export a graph as a graphic to an SVG file with transparent background. When the background is specified as a color (or unspecified), it works just fine. When the background is specified ...
3
votes
2answers
126 views

How can I get Inset to use ImageScaled, but preserve aspect ratio?

This code produces two identical images, despite the difference in the rectangles: ...
0
votes
1answer
94 views

Graphics // Triangle // Manipulation

I have been Mathematica user for a considerably short while. I have learned some of its functionality using wolfram how-to resources and the documentation. I am having difficulties constructing ...
0
votes
1answer
71 views

Why does show combined plots and graphics fail in CDF Player but not in Mathematica?

The question is, how might I get the following script working as a CDF demo of complex inversion in a circle? It works fine in my home edition of MMA 8 run on OS X Mavericks. When saved as a CDF file ...
1
vote
1answer
145 views

Error message: Coordinate index 0 is out of range for the enclosing GraphicsComplex

I am unable understand following error message: Coordinate index 0 is out of range for the enclosing GraphicsComplex. How to fix it? Attached data here: pts and polygons. See also end of question. ...
4
votes
1answer
124 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
866 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
297 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
66 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
116 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
112 views

How to create moving graphics that maintain shape [closed]

In the output code for the following graphic: ...
6
votes
1answer
120 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
40 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 ...
3
votes
1answer
211 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
130 views

How to place more than one ChartLabel in a BarChart

I have the following data: ...
0
votes
0answers
180 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 ...
2
votes
1answer
412 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
67 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
114 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 ...
4
votes
3answers
165 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
87 views

How to find a fit for a function?

I have the following function: ...
0
votes
2answers
143 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
106 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
79 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
124 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. ...
0
votes
0answers
63 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
47 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
81 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
223 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 ...
4
votes
3answers
201 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
166 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
91 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
58 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
400 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
117 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
103 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
119 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
266 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
156 views

Generate a set of 3D coordinates subject to constraints

Generating a set of random 3D coordinates is ok, e.g. ...
4
votes
3answers
238 views
3
votes
1answer
80 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
111 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
112 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
63 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
54 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
98 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
105 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
263 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 ...
13
votes
2answers
615 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. ...