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

0
votes
0answers
60 views

Problem in Plot at start [duplicate]

The derivative can be used to calculate roots. However the same function cannot be plotted.The error is at start point of domain: ...
0
votes
0answers
43 views

Empty Graph for Absolute Function

I wanted to plot the following equation: Plot[((x/7)^2 Sqrt[(Abs[Abs[x] - 3]/(Abs[x] - 3))] + (y/ 3)^2 Sqrt[(Abs[y + 3 Sqrt[33]/7])/(y + 3 Sqrt[33]/7)] - 1) (Abs[x/2] - ((3 ...
0
votes
3answers
59 views

Showing the coordinates on a plot in TraditionalForm

I just want to show the coordinates (Log[y/x],Log[x/y]) of a point on a Graphics object, but TraditionalForm fails to convert ...
1
vote
0answers
40 views

How to get grid items with a gradient background to behave well?

I have a table that looks something like this ...
9
votes
2answers
376 views

Phase portrait on a cylinder

It is very nice and very easy to make a sketch of a phase portrait with StreamPlot. For example, for the classical pendulum, defined by $$ \dot x=y,\\ \dot y=-\sin x, $$ The code ...
3
votes
1answer
65 views

Raster to Image conversion problem

There are 3 ways to convert a Raster into an Image : only 1 works for me with version 10.0.1, and 2 work with version 9 (same computer, OS X 10.9.5) Has anyone the same problem or is it localized to ...
0
votes
1answer
74 views

Use separate options for different elements in Show

I have a few plots of different type. plot1 has gridlines and the rest do not. I use the option Method -> {"GridLinesInFront" -> True}] when plotting plot1. When I use Show to combine the plots the ...
2
votes
2answers
48 views

Set the same color scale across multiple ListContourPlots?

This is probably straightforward - but how would I set the same color scale across multiple ListContourPlots? if I have values from 10 to 25 on one ListContourPlot and values from 40 to 100 on ...
0
votes
0answers
54 views

How do I extract the coordinates of a GeoGraphics polygon? [on hold]

I would like to use Polygon with GeoGraphics to perform some work on data within the boundary formed by the polygon. The work is ...
3
votes
1answer
185 views

Intersection of many planes

I'm working with a family of planes, given by $2a_1 x_1 +2 a_2 x_2 - x_3 +a_1^2+a_2^2=0$. I would like to use mathematica to plot these planes for many values of a and b, say a range of $-10\leq ...
9
votes
3answers
257 views

Generating hatched filling using Region functionality

Before v.10 came out there were several Q&A on generating hatched filling for Plot, ListPlot etc. In v.10 we have new ...
10
votes
2answers
155 views

Graph smoothing keeping vertices fixed?

Context Given a Graph like this one: ...
2
votes
3answers
89 views

plotting two Error List Plots in one

I made two ErrorListPlots ...
5
votes
1answer
207 views

How can we get this infinite prism lattice to look more like `PolyhedronData[{“Prism”, 3}]`?

This is D$_3$h prism with order 12 (8 currently, needs 4 more edges) and rotational symmetry D$_3$ with order 6. A d=11 version is shown here. Using this code: ...
4
votes
2answers
131 views

Draw a partial line in Animate

I have a list of points that my line must go through, all at varying distances from one another. I'd like to draw just a piece of this line in an Animate, where the various segments are traversed at ...
8
votes
2answers
318 views

Artefacts in 3d plots

I am trying to plot a simple function ...
0
votes
0answers
85 views

FeynArts 3.7 not compatible with V10 [closed]

Recently I've installed Mathematica 10 (instead of 9). An unpleasant surprise is that FeynArts 3.7 does not display topologies (although, all internal calculations seems to go well). The error message ...
0
votes
0answers
40 views

Change in direction when a line hits an ellipse?

I'm trying to simulate reflecting light off an elliptical mirror. I currently store the ellipse in the form {center,{radii},rotationAngle} and the ray of light is ...
0
votes
0answers
50 views

how can I 3D-plot multiple segments [closed]

I have a list of many 3-D line hundreds segments consisting of multiple points such as ...
8
votes
1answer
144 views

Vertex merging in graph?

Given a Graph such as the one produced with the following code ...
5
votes
2answers
108 views

ListPlot inserts extra PlotMarkers and Mesh at crossing points

In the example below, ListPlot with PlotMarkers -> Automatic and a variant using ...
2
votes
1answer
83 views

Mean curvature of Sphere

I am trying to calculate mean curvature of a parametric surface(like sphere), and I wrote this code based on this discussion. Here is my code: ...
0
votes
0answers
43 views

Plot is not accurate [duplicate]

I defined a matrix and use it to transform a square defined by four points. (In[85]) It seems the transformation keeps the length of the square. (In[91]) Now I plot the original square, the axis of ...
0
votes
1answer
60 views

ParametricPlot3D/2D won't work and leaves a blank space

I've been trying to evaluate this line ...
1
vote
0answers
26 views

Visualise sets giving some relations on those sets

I'm not very experienced with wolfram, but I'm searching for a function that can basicly do the following. Giving some sets $A,B,C$ and some relations for example $B \subset A$,$C\subset B$. I would ...
1
vote
0answers
34 views

How i can extract a single layer from a SHP file? [closed]

I just import a SHP file that have a series of layers, how can i get just one if i know the name of it?
0
votes
0answers
35 views

How to plot morphological stripe near the mouse-clicked position in an image? [duplicate]

I tried to use EdgeDetect and MorphologicalComponents to get the image edge elements. When I clicked on an image, I want the edge element nearby to be highlighted or plotted. Here is my code. Two ...
1
vote
1answer
45 views

How to plot graphs with vertices positioned as spread as possible? [closed]

The following code, outputs the graph below: graphList = {{1, 2}, {1, 3}, {1, 4}, {2, 5}, {3, 6}, {4, 7}} Graph[UndirectedEdge @@@ graphList] Is there some way ...
1
vote
2answers
64 views

Using expressions in Text

I want to use Text to add some labels to a graph and was wondering if it is possible to use expressions inside Text? Here is a MWE of what I am trying. ...
0
votes
2answers
68 views

Getting FerrersDiagram to work

I am trying to generate FerrersDiagram (see http://reference.wolfram.com/language/Combinatorica/ref/FerrersDiagram.html), any clues to getting it to work? I get error message for the following: ...
9
votes
6answers
475 views

a table of rectangles

I have code to generate this image: But my code is awkward and clunky: ...
2
votes
1answer
110 views

2D Fourier transform of a few (4) disjoint discs on a plane

I'd really appreciate some advice. Short Version I'm trying to calculate the following $$ ...
4
votes
2answers
230 views

How can I create a plot like this in mathematica?

I think this is called a caterpillar plot. The dot is the mean and the lines represent a 95% confidence interval. On the x axis there are several different test cycles, the red line is the true ...
0
votes
1answer
42 views

Why does my exported .GIF cut off the bottom of my animation?

I have the following (admittedly artificial) code: ...
5
votes
1answer
145 views

Measuring the area of different regions from a picture

Consider the following picture of a phase plane which help us distinguish between regular and chaotic motion. The entire phase plane is divided into two types of regions: (i) the regular domain ...
1
vote
0answers
66 views

Have I found a bug in the built-in function BezierCurve? [closed]

A week ago, I asked a question about bezier curve ubpdqn's solution: ...
6
votes
1answer
273 views

Connect neighbouring points as list of segments in 2 D

Context I am interested in connecting neighboring points in 2/3D as list of segments. I am guessing this is something within the reach of graph theory, which is well implemented in mathematica. ...
4
votes
1answer
85 views

Drawing disk with coordinates from NDSolve

I have simple Manipulation expression, but continuously getting error Coordinate {x[0.], y[0.]} should be a pair of numbers, or a Scaled or Offset form. I assume that something is wrong with ...
4
votes
2answers
89 views

Epilog with text not shown

I use the Epilog option in order to print in the vertical axes a label between 0 and 20 as follows ...
4
votes
2answers
114 views

Fill curve betwen specified abscissa points [duplicate]

I am plotting the Maxwell-Boltzman distribution of molecular speeds. I want to be able to select a region to integrate using a manipulate function. Then I want to have that same region filled in on ...
0
votes
0answers
68 views

Is it possible to have more than two vertical axis in Mathematica 2D plots? [duplicate]

Is it possible to have more than two vertical axis in Mathematica 2D plots? This is possible for example in matplotlib: http://matplotlib.org/examples/axes_grid/demo_parasite_axes2.html EDIT: the ...
4
votes
1answer
89 views

Getting the coordinates of GeoDisk[] and similar Mathematica 10 GeoObjects

I'm a big fan of the new Mathematica 10 geographic capabilities and functions such as GeoDisk[], GeoCircle[] and others. One limitation of these functions, however, is the transformation of the actual ...
1
vote
1answer
91 views

Finding the Tangent to the Curve [duplicate]

I could use some help with this. This is my first time using mathematica and im trying to get use to the coding. Find an equation of the tangent to the curve and graph the curve and tangents. ...
13
votes
1answer
360 views

Morphological Filtering in 3D to produce skeletons

Context As a follow up of this question and that answer, I would like to identify the special lines separating 3D watersheds. These are useful in the context of astronomy to identify the ...
11
votes
4answers
400 views

Using an Image as the Fill/Texture (not background) of a Plot (not polygon)

Is it possible to use an image, rather than a color, or ColorFunction, as the filling for a plot? For instance, I want to make a plot using ...
2
votes
1answer
107 views

How to correctly map values onto an arrayplot

I want to understand why the order of the text is reversed from what it should be? If I compare the first and second results, I see that the {1,1}, {2,2},... diagonal is going down the wrong diagonal. ...
2
votes
0answers
65 views

Constructing primitive cell using information from ChemicalData

I would like to construct a primitive cell (figure shown) and possibly the two-dimensional layout (figure from http://en.wikipedia.org/wiki/Transition_metal_dichalcogenide_monolayers) using the ...
1
vote
1answer
60 views

Resize GraphicsGrid

Here's a GraphicsGrid after evaluate cell: Here's a GraphicsGrid after I resize it: I then run Export["test.pdf", grid] and get this PDF: Needless to say, ...
2
votes
1answer
79 views

Mathematica exported movie quality

I am generating an animation using: anim = ListPlot[X] Export["anim.mov", anim, ImageResolution -> 800, Antialiasing -> True] The .mov file obtained this ...
3
votes
1answer
92 views

Multiple animation in Mathematica

I have the following in Mathematica: ...