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
72 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 ...
5
votes
0answers
120 views

How to fix a PDF line rendering problem in V9

If I run this in V8 ...
1
vote
1answer
138 views

Creating an animated graph model based on equations

So I have a graph that looks like this ...
19
votes
4answers
580 views

How can I get the color of overlapping disks to be equal in any order?

When Graphics is used, necessarily the objects come in order. This affects which ones obscure others. When Opacity is not 1, it also affects the color. I would like the color of overlaps to depend ...
7
votes
1answer
282 views

Accidentally corrupted graphics (?) data of notebook — now it won't open

In the process of editing my scripts' variable names with a haphazard "replace in all open files" in my text editor, I accidentally replaced portions of graphics data in a notebook (and I believe this ...
3
votes
2answers
361 views

Add coordinate axes to a 3D plot of concentric spheres

I want to add coordinate axis to a figure of nested spheres. I have the command. ...
2
votes
4answers
187 views
14
votes
2answers
796 views

Drawing pairs (graph, circle packing)

Circle packing theorem states: For every connected simple planar graph G there is a circle packing in the plane whose intersection graph is (isomorphic to) G. How to use Mathematica to draw examples ...
3
votes
2answers
160 views

Contour coloring and (List)ContourPlot projection

I have two questions concerning (List)ContourPlots. Since they are related to a single visualization desire, I have combined the questions into a single post. I'm hoping that they will be easy to ...
10
votes
2answers
1k views

How should I reproduce this colorful swirling gif?

Surfing on the web, I came upon this cool gif: Does any one know how to reproduce this in Mathematica? I have some ideas myself, so I will try to answer this question as well.
1
vote
0answers
30 views

X-axis obscuring a vector that lies along it [duplicate]

I am having the following problem. I am playing with Manipulate and I would like to draw a vector overlapping an axis (x-component of a vector), and I would like ...
4
votes
4answers
252 views

Conveying density of 5-smooth (Hamming) numbers

A number is 5-smooth if its only prime factors are 2, 3 or 5. Example: 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, … Interesting thing is that as they become larger ...
2
votes
1answer
160 views

Label x-axis of Plot with power of two values

I want to make a plot similar to LogLinearPlot, but with power of 2 ticks instead of 10 on x axis. ...
2
votes
1answer
159 views

Perspective transformation of a 2d streamplot

I have a two-dimensional streamline plot from a fluid dynamics simulation. I am wondering: is it possible to somehow allow Mathematica to treat the streamline plot as a plane in three-dimensional ...
4
votes
1answer
157 views

How do I make the color of arrowheads in a graph different from the colors of the arrows?

I'm graphing a Markov process mp = DiscreteMarkovProcess[{1, 0, 0}, ({ {0.6, 0.1, 0.3}, {0.2, 0.7, 0.1}, {0.3, 0.3, 0.4} })]; and would like ...
5
votes
6answers
661 views

How to make a resizable chess board?

For some reason I need to create a chess board. I can create a chess board by following command: ...
2
votes
1answer
122 views

Discontinue, then continue x-axis of 2D Histogram

I have the pictured Histogram. It was generated by the following lines: ...
2
votes
0answers
151 views

Strange opacity behavior

I edited my question and included the code: here I make the general definitions for the parametric plots I have to do later (these are simply the definitions of the x and y coordinates of the points ...
0
votes
2answers
101 views

Having problems with ListPlot and a PaddedForm wrapper

I defined a function f[x_] = x^3 2 x. Then I had to construct a table showing vertically, the values of f corresponding to x on ...
2
votes
0answers
84 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 ...
1
vote
1answer
106 views

Why don't I get the graphics output I'm expecting? [closed]

Today,I want to use a point generate a circle,the main picture as below: Given that I know the equation of circle, and the value of $L_1$,$L_2$.The coordinate of point $A$ is $(p_x,p_y)$. I use ...
5
votes
1answer
118 views

Adjust the opacity of the lines in a ListPlot

Here is what I am trying to plot: ...
0
votes
1answer
64 views

Show List of HighlightGraph Objects in Matrix

I'm new to Mathematica and can't get my problem solved. I want to display a list of HighlightGraph objects in MatrixForm like ...
0
votes
1answer
110 views

Rotating & Trimming grids

I want to draw a graphic $20\times20$ grid, rotate it by $\theta$ around $(0,0)$, and trim off the part on the right of the y-axis, so I came up with ...
0
votes
1answer
92 views

Graphing the sequence {$p_k$} = $\frac{c - a + dp_{k-1}}{b}$ [duplicate]

Graphing the sequence {$p_k$} = $\frac{c - a + dp_{k-1}}{b}$ I need to know how to graph this function where it automatically plugs in the previous term for $p_{k-1}$, the coefficients are of my ...
15
votes
2answers
377 views

Is there a better way to add elements to a Graphics expression repeatedly?

Consider simple example where a set of points is generated and some are displayed. ...
0
votes
1answer
64 views

ListPlot, PlotMarker -> y value [duplicate]

at first sorry if this question is already answered. I would like to display y value as plot marker in listplot ...
5
votes
2answers
263 views

Extracting financial indicator data from trading chart

How can the data of the directional movement index below be extracted from this chart? It seems to be embedded in some kind of dynamic module. ...
0
votes
0answers
54 views

Visualizing Dynamic Time Warping [duplicate]

I need combine 3 graphics into something like this Any ideas?
2
votes
0answers
57 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: ...
3
votes
2answers
129 views

Controlling spacing of histograms in Histogram3D

I have five histograms, hist1 = Histogram[data1, 20], to which I append {1, 2, 3, 4, 5} via ...
1
vote
1answer
125 views

Overlay Rectangle on a ListPlot

I have a ListPlot of 100 data points in the range of 0 and 1. Now I'm trying to find a way to overlay (four) rectangles onto the listplot in 0.25 steps horizontally. Essentially I just have BinLists ...
5
votes
1answer
144 views

Why does Arrow not work well with Scaled coordinates in 3D?

I am a little puzzled by the fact that if I try to use Arrow with Scaled coordinates in 3 dimensions the arrowheads are all over ...
2
votes
1answer
95 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: ...
0
votes
0answers
66 views

Making single letters non-italic in Graphics/Text/Style objects

Suppose that I use Graphics, Text, and Style to type one letter in the subscript of a letter ...
2
votes
3answers
143 views

Recover data points from RGBColor of known ColorScheme

In general I want to recover the z-values from an image of a DensityPlot. A simple example might just be ...
0
votes
0answers
63 views

Read in bezier curve from svg file

I am trying to do some calculation of some svg file,After read in with Import["filename","XML"]and some easy operation, I can get the string of the bezier curve, ...
4
votes
1answer
215 views

Coloring a honeycomb structure

I am trying to generate a honeycomb structure. With the help of this MMA.SE question & this website, I got ...
2
votes
1answer
84 views

Country borders and grids with CountryData plot?

I am coloring several countries in the manner of the following: ...
7
votes
3answers
216 views

Graphics in Notebook Different from Graphics Expression?

Consider the expression TreeForm[a+b^2+c^3+d] which displays as This is a nice Graphics object, as I can prove by typing ...
4
votes
1answer
246 views

Bresenham's line algorithm

Bresenham's line algorithm is producing discretized line for given two points for purpose of plotting for example. Like that: I have to stress that I'm interested in positions, not a plot. ...
6
votes
2answers
293 views
4
votes
1answer
167 views

Creating a dynamic plot directly from the recurrence relation

I have the following recurrence relation that has no general solution: $$x(t+1) = \frac{x^2 + x(1-x)(1-sh)}{x^2 + 2x(1-x)(1-sh) + (1-x)^2(1-s)}$$ In Mathematica language it gives: ...
1
vote
1answer
140 views

How to reverse the direction of the y axes on Graphics

Question related to this one, except I need the same for the Graphics. Lets say I have the following drawings: ...
2
votes
2answers
184 views

Plot Wiener Process and its running maximum

I want to plot a Wiener process $B=(B_{t})_{t≥0}$ and its running maximum $S_{1}=\max_{0\leq t\leq1}B_{t}$ on Mathematica. Can anybody help? I only know how to generate a Wiener process using ...
3
votes
0answers
119 views

How to restrict the mouse cursor to stay within a box?

I'm trying to use Mathematica to write small games, and I find that it would help to restrict the player's mouse into the game window (just like other games do). Is there any way to achieve this? ...
2
votes
2answers
110 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
2answers
162 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 ...
17
votes
3answers
524 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 ...
0
votes
1answer
51 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) ...