# 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 ...

207 views

### Highlighting or coloring certain words / substrings appearing in a larger string

I have one longer string, longString, and a set $S$ of shorter strings {ss1,ss2,ss3,...}. I'd like to print out ...
408 views

### 3D plots with a continuous and discrete input [duplicate]

How can I plot a function with one discrete and one continuous input? Plot3D wants everything continuous while ListPlot3D and ListPointPlot3D want everything discrete. I would like be able to say ...
840 views

### Creating sculptural forms using graphics primitives

This is a question based on this answer by halirutan. Some amazing images can be created with this code, and I was wondering whether it was possible to extend the principle to different shapes. I ...
73 views

### Mouse motion makes frame disappear in Overlay of long ListPlots

Using M9, OSX 10.8.4, most parts of the Frame in the following overlay disappear (also partially occluding some FrameTicks) ...
423 views

### How to use Undocumented Functions Prism, Tetrahedron and Hexahedron

Taking a look at this question and this one, I checked to see if Mathematica really does not have a Prism primitive. To my surprise the function ...
298 views

### Issue in displaying a rotated PolarPlot with Show

I can use PolarPlot to generate a plot; however, I would like to rotate the plot by 90 degrees and then output the result using Show. Here is the code ...
77 views

### Controlling output of graphics, the role of “;” and code structure/formatting

";" is described under Compound Expression as a delimiter, such that only the output of the last item in the compund expression is given. Situation: 1/ Print[] produces output whether followed by ...
588 views

### Map of Swedish regions?

There have been some questions dealing with how to draw individual US states since such data doesn't come with Mathematica through its CountryData which offers ...
298 views

### Why does the order of arguments in Show influence the result?

I am wondering why there is a difference in the results from evaluating the two expressions, which differ only in the order of the arguments given to Show. When I ...
230 views

### Color of first and last point in a graphic

I'm trying to make a graphic of a random walk in 1D, but i want that the first and the last point have a color (in this case the first one red and the last blue), but i dont know what i'm doing ...
926 views

### Map of Specific US States? (Isolated)

My question here is fairly basic, and I'm sure I'm overlooking something basic. I know about CountryData for creating shapes of entire countries, and it works, to ...
216 views

### Set PointSize to pixel size

I have a set of 1million 2D points and I would like to produce an image 200x200 pixels where each point will have the size of a pixel (no more). Additionally each point may repeats several times so I ...
142 views

### Accessing Draw Tools objects with notebook commands

In a notebook I would like to be able to access and modify the properties of draw tools objects after I've drawn them on a graph by hand. For example, if make a plot and, with draw tools, make a ...
607 views

### Mathematica style (drawing cubes)

I wanted to draw (lattice-aligned) unit cubes inside a sphere with a given radius centered on the origin, so I wrote this program: ...
320 views

### project moving point onto a line

The following code displays three solutions to the logistic ODE with an animated points that follow the solutions.. My goal is to project the solutions on to a vertical phase line. I need to be able ...
146 views

### Expand Graphics based on all elements

How might I force the following Graphics element to expand to contain the Inset text? ...
494 views

### How to label the coordinates of the plotted graph?

How can I label the coordinates of the plotted graph? I want to label the coordinate of $(-1,-1)$. ...
464 views

### Combine Plots into a single non-rasterized Graphic with no spacing [duplicate]

Suppose that I have two plots, pl1 and pl2: ...
862 views

### How to draw rectangle in mathematica with arrow

I have a basic question but i cant seem to find an answer for it. How do i draw a rectangle in mathematica with either clockwise or counterclockwise arrow heads. In this picture i know two points ...
425 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$, ...
295 views

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

Bug reproduced in V9.0.1 and persisting through V10.4.1 Please take a look at following toy example: ...
247 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 ...
488 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: ...
94 views

### Combine two functions in mathematica to get one image with two elements

I am trying combine this two functions into one piece in grid. ...
173 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" ...
281 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 ...
168 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 ...
548 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 ...
495 views

### Plotting solutions of differential equations with different parameters [duplicate]

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. ...
253 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 ...
365 views

### GatherBy and two conditions

I have a list of 4 dim points, given by ...
232 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 ...
69 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 ...
2k 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 ...
935 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. ...
118 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 ...
548 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?
81 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), ...
333 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 ...
2k views

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

I am plotting n spectrum using: ...
478 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 ...
1k views

### Implementing a Beeswarm plot in Mathematica

I am looking for a Beeswarm plot implementation in Mathematica. Consider the following data: ...
399 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 ...
181 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 ...
790 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. ...
501 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. ...
231 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, ...
78 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 ...