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
1answer
88 views

Arranging “ranked” nodes of a graph symmetrically

I have Markov chains with a pair of absorbing states taken from the $n$-length strings formed from {"H","T"} for n at least 3 ...
2
votes
1answer
120 views

Country borders and grids with CountryData plot?

I am coloring several countries in the manner of the following: ...
2
votes
2answers
129 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 ...
2
votes
1answer
92 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 ...
2
votes
1answer
184 views

Finding a Moore neighborhood connected path of bright pixels along the contour of a text character

I have a simple image, for example a blowup of a Times New Roman character like 'R' saved as a PNG. I then perform the following operations to extract a minimum representation of the contour lines ...
2
votes
1answer
144 views

How to color the surface of the Box of 3D graphics

Is there any possibility to color the surface of the Box of a Graphic3D[]? ...
2
votes
1answer
202 views

GraphPlot labels overlapping

If I plot the following graph with an EdgeRenderingFunction, the position of both the labels are at dead center, and with a large graph I have the labels completely ...
2
votes
3answers
298 views

How Can I superpose an image and a graphics?

I want to superpose an image with a graphics in order to evaluate their alignment. I am writting this exemple of code. ...
2
votes
1answer
151 views

Manipulate Locator warping (snap to cursor)

I'm looking to have a Manipulator Locator that moves in discrete steps and requies the user to click on/near the locator position.. consider these two examples: ...
2
votes
1answer
155 views

Fraction Alignment in Plot Export to JPG [duplicate]

I've produced some plots that have fractional tick labels on the horizontal axis and they look fine. ...
2
votes
1answer
380 views

Legends for multiple curves

Dear users I am a new member here and I would like to ask a question about PlotLegends. I have multiple curves and want to make their legends bit more visible. ...
2
votes
3answers
1k views

How to color a contour plot over a subset of colors displayed in the bar legend

This seems real easy but I can't find the answer. I have a few contour plots that I am combining and want to use only one bar legend that captures all the values. Given that I know the range of ...
2
votes
1answer
351 views

position image combined with other graphics

Is there a way to directly transform an image? This works but seems klunky : Graphics[{Translate[ Raster@ImageData@image, {x,y}], .. other graphics objects .. }] ...
2
votes
1answer
142 views

double arrow in GraphPlot

Is it possible to combine two edges into one with a double arrow? For example: ...
2
votes
1answer
165 views

MatrixPlot for DFT in black and white with ContourLabel

I have several data files such as this: ...
2
votes
1answer
230 views

Color coding based on 4D data within a building

I am trying to create something similar to a Heatmap within a building. Suppose I have a room with dimensions, {30,40,50} as length, width, and height respectively. I have a set of data that is of ...
2
votes
1answer
273 views

Resetting an animation with a custom button

I have the following code, which accepts a function via an InputField, and then gradually draws that function in a Plot using ...
2
votes
1answer
529 views

intersection between two curves in Mathematica

I have two curves (drawn from points) in a plane, one is drawn with ListLinePlot and the other drawn with ParametricPlot. How ...
2
votes
1answer
163 views

Why are the elements of plots separated in exported PDFs?

When I export a plot to a PDF with something like Export["test.pdf", Plot[Sin[x], {x, 0, 2 Pi}], "PDF"] I get a file in which the axes have been separated from ...
2
votes
1answer
219 views

Scale label problem of multiple ListLogPlot graphs

Consider the following code: ...
2
votes
2answers
423 views

Edges and crossing

I want to make a program where I have a collection of labeled vertices and edges between the vertices such that they join up with edges $a_{1} a_{2}, \; a_{2} a_{3}, \ldots ,\; a_{n} a_{1}$, so the ...
2
votes
2answers
158 views

Cannot adjust inset to show at the top of the base graph

I'm trying to put an inset on top of a graph, the inset is also a graph. I'm using Inset within Epilog and the following command ...
2
votes
1answer
215 views

DynamicModule with constant image size

I am new to this forum - I wonder if someone can help me improve this code. I would like the angle $\theta$ to start in the middle of the slider i.e. $\theta = 0$ instead of starting at $\theta = ...
2
votes
1answer
666 views

Adding a circle to an already existing drawing

With reference to my earlier post: Adding a point to an already existing graphic I would like to add an outer circle to the whole drawing. This outer circle is a fixed one of ...
2
votes
1answer
152 views

How to control the length of vectors in VectorPlot

I want a slope field for a scalar differential equation. For simplicity I have chosen $dx/dt=rx$, where $r$ is a parameter. I used VectorPlot for the slope field as you can see from the code below. ...
2
votes
1answer
82 views

`Export` to `.eps` ruins the formatting of subfigures

As a result of this question an issue of Export emerged. I.e., when I set my .eps figures with ...
2
votes
1answer
96 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: ...
2
votes
1answer
230 views

GUI of a Karnaugh Map (2)

Adopting kguler's answer to my previous question, I managed to get the simplified map by using Mathematica's build-in function BooleanMinimize. The tough job left ...
2
votes
1answer
110 views

Why there is an extra node left behind?

I intend to add a node and an edge to a RandomGraph when clicking on one of its existing nodes and drag the newly generated node to a new position. However, there always an extra node left behind at ...
2
votes
1answer
128 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 ...
2
votes
2answers
109 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. ...
2
votes
1answer
137 views

Another one problem with legends on GraphicsGrid

I have used ListLinePlot to generate this grid of plots: and I want to add a legend in Row Layout below this grid. My code, has as follows: ...
2
votes
1answer
175 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 ...
2
votes
2answers
160 views

how to get a linearized curve in some intervals

in below picture I draw a graph base on weight of a controller system against cost function. I want to linearise and divide this curve to for example 5 five intervals. is there any function in ...
2
votes
1answer
144 views

Flipping x-tick-labels on custom plot

I'm slightly new to the world of Mathematica, so I can't assess the difficulty of my request, but anyhow, this is my question: I have 2 datasets that I want to plot with two y axes, and a reversed x ...
2
votes
1answer
75 views

Strange response with dynamic texture and MousePosition

I built a cubic, then use MousePosition together with GUIScreenShot to take a floating region with fixed size (200*200) on the ...
2
votes
2answers
200 views

Exporting graphics without X server

I have a Mathematica installation on a Linux server that is intended to be used for batch processing. Some of the things that will be processed will include rendering of graphics. However, if I use ...
2
votes
1answer
223 views

Optimal image quality using Rasterize Function

Based on previous posts about plotting two y axes on the same x axis, I wrote this function: ...
2
votes
1answer
340 views

Isomorphisms for graphs with loops and multiple edges

I am working with graphs with multiple edges and loops, and I want to eliminate all isomorphic graphs from a long list I've generated. The FindGraphIsomorphism ...
2
votes
3answers
222 views

The same range on each plot in a grid

Suppose I have a bunch of graphics that I want to display in a grid: ...
2
votes
1answer
63 views

Dynamic overlay of graphics and plot while maintaining uniform coordinates

I have a plot and a graphic that I want to overlay onto one another while retaining a uniform sense of coordinates throughout the whole thing. I have tried to do this two ways and both suffer from ...
2
votes
0answers
120 views

How can I create a minimal surface with trefoil knot as inner edge and circle as outer edge?

This minimal surface is the subject of Michael Foster's beautiful wood-turned sculpture "Inversion" (see http://breezyhillturning.com/styled-2/photos-2/index.html). In addition, how can one create 2D ...
2
votes
1answer
80 views

Drawing a graph with vertex avoiding edges? (Handling vertices that must be colinear?)

I'd like to draw something like the following graph: ...
2
votes
0answers
35 views

ListPlot with conditions Part II

In a previous post Part I @Julian S proposed an interesting method in order to segment the data. A copy of the data file can be found here: data. I know that I should provide a minimal working example ...
2
votes
1answer
94 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 ...
2
votes
0answers
204 views

Generalize WASD Function First Person Viewing

How might I generalize the following WASD question such that it works with any Graphics3D object and includes q and ...
2
votes
0answers
64 views

Problem with hole filling using filledCurveToPolygons3D in MMA 10

I successfully used the filledCurveToPolygons3D function to create Graphics3D text in MMA 9 on a Windows 7 PC; see: How can I ...
2
votes
0answers
88 views

Graphics always rendered twice with SimpleFrontEnd example?

I am looking at the Java SimpleFrontEnd example provided by Mathematica. Everything goes well except it always renders graphics twice. Can anyone help me with ...
2
votes
0answers
68 views

Does the VerticalCallout algorithm in PieChart work correctly?

This manufactured example is typical of many real world cases where we have thin slices of the pie: ...
2
votes
0answers
273 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$, ...