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

2
votes
0answers
263 views

Visualising Special Relativity

Mathematica newbie learning by doing (or not so far, in this case). Problem: Special Relativity - consider two inertial frames $A$ & $A'$ in relative motion. At a time $t0$ as measured in $S$, ...
7
votes
3answers
201 views

Problem with CurrentValue[“MouseOver”] when graphics are wrapped with Deploy

Please take a look at following toy example: ...
2
votes
1answer
170 views

Render dynamic Graphics objects static

As was discussed in the comments of another question (MathLink Graphical Output (Plots) to File), Graphcis objects produced by commands such as ...
3
votes
2answers
193 views

Resizing graphics with an inset when exporting

I am generating a number of graphics using Mathematica that contain text. Adding the text to the graphic has been a considerable challenge, but I have finally come up with the following: ...
4
votes
2answers
164 views

TrackedSymbols affected by CurrentValue. Another problem with SetDelayed(:=)+OwnVales in Initialization

It is MWE, only a Disk[] that should print "Click" when clicked. Also "date... updating" ...
5
votes
2answers
216 views

extract line from position data

I got a picture like this, and what I want to do is to extract lines from the picture. what I have done now is ...
0
votes
1answer
130 views

How to plot a decahedron with Mathematica?

I wrote Graphics3D[{Opacity[.9], FaceForm[Yellow], PolyhedronData["Dipyramid", "Faces"]}] and I get this picture: I would like to plot a decahedron without ...
9
votes
1answer
321 views

Generating high quality charts in Mathematica for use in LaTeX and Word

I frequently have a probelem using my charts in reports because the text (axes labels and tick marks) look low resolution (fuzzy). When I export my charts, i export them as PNG files. Unless I'm ...
-1
votes
2answers
137 views

Plotting solutions of differential equations with different parameters

I want to plot x[t], when i manipulate w from 0.1 to 1.5. Here is what I've attempted, which does not work as expected. ...
2
votes
1answer
137 views

Order of symbols in Graphics labels

Do you have any idea how to force an order of Greek letter in the graphics? When I type in AxesLabel -> {Cost, Δ OverBar[π]} the order is π Δ. How can I ...
1
vote
1answer
171 views

GatherBy and two conditions

I have a list of 4 dim points, given by ...
0
votes
0answers
55 views

Dynamically Update Inset within Graphics with RunScheduledTask [on hold]

I followed the instructions given below to play with RunScheduledTask within DynamicModule. ScheduledTask with scoped ...
3
votes
1answer
117 views

How to fill a whole rectangle with text?

I have a rectangle with specified dimensions and I'd like to fill it with text, so that the text uses all (well, as much as possible) of the available area. I tried to do it with ...
1
vote
0answers
60 views

Dot shading a.k.a. Stippling effect [duplicate]

I am trying to convert grayscale images to black and white, where I hope to have certain artistic effect, called stippling: I have tried two methods; dithering (with ...
37
votes
2answers
1k views

How can I add drop shadows and specular highlights to 2D graphics?

I thought I'd share some code in the form of a self-answered question, but other answers are of course welcome. Drop shadows are a familiar visual effect, giving the impression of a graphical element ...
6
votes
2answers
562 views

StreamPlot for Bifurcation Diagram

When we do a StreamPlot, I want to show the bifurcation when $a = 0$ transitions to $a >0$, but do not see a better way to do this than the following. ...
4
votes
1answer
100 views

Why does a heavy background slow LocatorPane from updating, even if only the locators are Dynamic?

I'm having some trouble getting a dynamic plot to operate efficiently, and I think I've tracked down at least part of the problem to some pretty weird behaviour on the part of ...
9
votes
4answers
270 views

How can I generate and randomly assign color to annular sectors?

How can I generate such an image and fill every annular sector with a random colour?
0
votes
0answers
59 views

Plot hangs Mathematica through NETLink

I have a C# function that calls Mathematica via Wolfram.NETLink. On our home computers all the test calls work perfectly, but on our AWS server (both a microinstance and a beefy c3.xlarge instance), ...
0
votes
2answers
172 views

Extract coordinates from a polygon [duplicate]

I need to extract the coordinates from a 2D polygon then calculate the maximum and minimum of the x and ...
0
votes
1answer
90 views

Drawing a series of circles with `MapThread` & `Graphics` [closed]

I'm attempted to use MapThread to draw a series of circles at coordinates correspond to some list, like so: ...
0
votes
0answers
259 views

Graphic Timelines in Mathematica in v9 (2014)

I noticed a previous question on this site: how to make graphic timelines in mathematica The question concerned the creation of "graphic timelines" of this form: ...
1
vote
1answer
308 views

How do I overlay multiple graphics on one plot? [duplicate]

I am plotting n spectrum using: ...
0
votes
1answer
190 views

Calculate the centroid of a group of pixels with the same PixelValuePositions

My question is about how to recognise objects in a image. I would like to recognise objects of the same color. Then I want to calculate the centroid of these objects. I want to apply this calculation ...
22
votes
4answers
692 views

Implementing a Beeswarm plot in Mathematica

I am looking for a Beeswarm plot implementation in Mathematica. Consider the following data: ...
1
vote
1answer
186 views

Error bar plot - no bars but rather point size determined by errors

Looking for a way to create an ErrorListPlot (x,y,error) with the radius of the PlotMarker ...
1
vote
1answer
141 views

How to change the format of FrameTicks

Here is a plot with the default frame ticks S1 = Plot[Sin[x], {x, -7, 7}, Frame -> True, Axes -> False] Now, if I define myself the range as well as the ...
1
vote
2answers
322 views

Multiple curves plotted with different colours [duplicate]

I am trying to use ColorFunction for 2 functions on the same plot. I only want the cubic equation to change colour. ...
8
votes
1answer
290 views

How does PlotLegends actually work with ListPlot3D?

I'm sensing this might be a rookie mistake but normally I roll my own legends but decided to try the built in legends for a ListPlot3D. ...
0
votes
0answers
140 views

How to plot an implicit equation with separate dispersion lines of Lamb waves

I'd like to plot (to try reproduce) dispersion curves of Lamb waves as in http://en.wikipedia.org/wiki/Lamb_waves But I can't to separate each lines. I was reduce the dispersion equations as X=ωd/Vs, ...
0
votes
0answers
75 views

3d graphic for publication [duplicate]

Journals are very strict and some of them require special formats. They suggest the .tiff or .jpg format for graphics with many colors. I have problem how to export, for example, this figure consists ...
3
votes
0answers
41 views

Tick labels above axis [duplicate]

Is there any way to place tick marks on the x-axis above the axis? Note that I am talking about marks on the axis, not on a frame (because my graph has no frame). To be more specific, here's the ...
12
votes
2answers
238 views

Get Coordinates 4 significant digits limitation

The tool "get coordinates" (clicking on a plot), seems to work with a fixed number of significant digits (4), in a way that we can quickly lose sensibility (the tool really becomes useless). The ...
0
votes
0answers
37 views

Using Manipulate, how do you display the points on the curve and the tangent vector? [duplicate]

I'm new to Mathematica and my assignment is very vague... I'm hoping someone can explain to me a bit more of that this quesion means: Given the curve C, display the point on the curve and the ...
5
votes
3answers
1k views

Labeling points on a graph with their coordinates in parentheses

I need to create some graphs in Mathematica with a bunch of labels, such as axes labels, graph labels, etc. In particular, there must be some points that must be labeled with their coordinates. Thanks ...
2
votes
1answer
192 views

Making a rectangular label for RegionPlot

I have a plot that includes a Region Plot. I want to make a rectangle with the same shading as in the region plot to show as a legend. The dumb way I can think off ...
1
vote
0answers
49 views

plot cropped in large amount when setting Text Style to some specific sizes and in some locations

I make a Graphics and then add Text[Style["b",size] to it. When changing the size, I noticed that the overall graphics gets ...
0
votes
0answers
36 views

How to plot image of a complex function with a given domain [duplicate]

I've been trying to figure out a way to either draw a curve in the domain of a complex function in one plane and then show the result in another plane (simultaneously?). Actually, just plotting ...
0
votes
1answer
202 views

Plotting a line segment from the degenerate case of an ellipse [duplicate]

An ellipse degenerates into a line segment when the defining constant distance from the two foci is the actual distance between the two foci. The ellipse closes into a line segment. The following ...
1
vote
1answer
97 views

Connecting a vertex to middle of an edge with GraphPlot?

using GraphPlot I'd like to make directed arrow connecting a vertex (node) to the middle of an edge but couldn't find a way. Is this even possible using GraphPlot or other graphics-related commands in ...
11
votes
1answer
183 views

Unwanted PlotMarkers appear at non-existent places

In this simple code ...
0
votes
0answers
119 views

Export Graphics using Move in Optica

I am modeling an eye and am using TurboPlot and DrawSystem. I would like to export the graph, but using the ...
0
votes
0answers
73 views

densityplot + world map overlay [duplicate]

I can make a world map, and I can make a density plot, but I can't seem to get them to overlay. Was trying to use Show to overlay: ...
0
votes
1answer
214 views

Using an image as a moving object in an animation

I have following animation: ...
2
votes
2answers
431 views

Generating social network graph from a CSV file

I am new to Mathematica and wanted to generate undirected graph for data sets that show the relationships of organizations with each other. The data is in a square matrix. The cells of the matrix ...
4
votes
2answers
316 views

Recognize simple shapes in an image and color them randomly?

I have an image of polygons built from a polar function (see below). I'd like to color each triangle or quadrilateral a random color. Firstly, I'm not sure how to separate the simple shapes. ...
0
votes
1answer
141 views

Graphics with shapefiles using tooltip

I'm trying to write a code that displays an entire shapefile color-coded by one variable, and then as the mouse is moving it shows the local regional area of interest with all its data Got a working ...
1
vote
1answer
235 views

Detecting a nonlinear edge in a 2D point pattern

Following an earlier post here, I have generated a point pattern on the unit square $[0,1]\otimes[0,1]$, which is described by a piecewise constant intensity function constructed so that (in ...
1
vote
1answer
434 views

ListPlot doesn't shows all points [closed]

I have a table: p1 = Table[(Binomial[2000, k]*StirlingS2[1386, k]*k!)/(2000^1386), {k, 1, 1386, 1}]; I used ListPlot[p1] ...
2
votes
2answers
154 views

Assigning weights to edges of a hypercube based on the Gray code labels for vertices being connected

Say I want to construct an $n$-dimensional hypercube graph $G$ using the command: G = HypercubeGraph[n]. I'd like to assign edge weights to the $2^{(n-1)}n$ edges ...