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
1answer
34 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
158 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
49 views

Visualizing Dynamic Time Warping [duplicate]

I need combine 3 graphics into something like this Any ideas?
2
votes
0answers
35 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
102 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
81 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
111 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 ...
1
vote
1answer
64 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
27 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
113 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
50 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
174 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 ...
1
vote
1answer
43 views

Country borders and grids with CountryData plot?

I am coloring several countries in the manner of the following: ...
6
votes
3answers
190 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
134 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. ...
4
votes
2answers
208 views
4
votes
1answer
144 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
117 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
0answers
101 views

Improve the clarity of a graphic [closed]

I want to use Mathematica to plot two 3D plots which delimit different regions of the space, and I want to show the differences between the region they delimit. These regions are: $z \geq cte /(4 x + ...
2
votes
2answers
150 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 ...
2
votes
0answers
86 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
87 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
107 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 ...
16
votes
3answers
430 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
37 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) ...
2
votes
1answer
85 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 ...
1
vote
0answers
54 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 ...
3
votes
2answers
149 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 ...
5
votes
1answer
159 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 ...
2
votes
2answers
157 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 ...
6
votes
1answer
175 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 ...
2
votes
2answers
113 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 ...
2
votes
1answer
58 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 ...
6
votes
3answers
252 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: ...
2
votes
1answer
136 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 ...
0
votes
1answer
80 views

Problem ListLinePlot with 2 data sets [closed]

I am trying to plot 2 data sets with ListLinePlot and my problem is that no graph shows up. When I plot a single data set i.e. ListLinePlot[Aluminium] it looks ...
2
votes
2answers
115 views

Expand Graphics based on all elements

How might I force the following Graphics element to expand to contain the Inset text? ...
0
votes
1answer
76 views

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

Suppose that I have two plots, pl1 and pl2: ...
3
votes
3answers
360 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 ...
2
votes
0answers
187 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
148 views

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

Please take a look at following toy example: ...
2
votes
1answer
123 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
124 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
152 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
178 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
102 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 ...
7
votes
1answer
181 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
81 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
95 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
108 views

GatherBy and two conditions

I have a list of 4 dim points, given by ...