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

4
votes
4answers
192 views

Using Locators in a non-standard Manipulate code

I'm trying to adapt Nasser's method for using a control variable inside Manipulate to selectively choose what part of the code should be recalculated depending on the controls changed (see this ...
12
votes
1answer
465 views

Graph stories, 3-d volumes

I saw a lesson plan that had students filling different shaped bottles at a constant rate. The idea was to graph height vs. time to show the students how different shapes would produce different ...
1
vote
1answer
106 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
196 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
124 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
102 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 ...
2
votes
2answers
114 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 ...
0
votes
1answer
60 views

Maximum but still limited magnitude region is not plotted with ContourPlot [closed]

The function is well defined in the whole region. But it just skips plotting the center region. I've tried PlotPoints, Mesh, Contours - it didn't help. After making more contours. White hole is ...
56
votes
6answers
5k views

Generating visually pleasing circle packs

EDIT: I want to thank you all guys for this unexpected intellectual and artistic journey. Hope you enjoyed as I did. I would like to generate a circle pack that ...
1
vote
1answer
98 views

How can I show a rotated PDF plot superimposed on a ListPlot of the underlying data?

I have a set of 3 lifetime datasets in lists called values1, values2 and values3. values1 = {53377., 16542., 31418., 5629., 17654., 7365., 15797., 862., 76906., 10073.}; values2 = {74412., 15620., ...
1
vote
2answers
137 views

Plotting in the “Manipulate” function - simple coding

Hello Mathematica community, my name is Preston! I have a real quick question that should be easy to answer. Alright, so for a research project that I'm involved it at my university, I need to ...
1
vote
1answer
85 views

Extract Graphics properties using EventHandler

One can find primitives' properties such as the radius, the center or the color of a Disk using Cases by using: ...
14
votes
2answers
213 views

Upon PDF export, edgeless rectangles do not tile perfectly, and corners may be cut. Is this a bug?

Exporting the following as a PDF file Graphics[{ {Red, Rectangle[{0, 0}, {1, 1}]}, {Green, Rectangle[{1, 0}, {2, 1}]} }] does not produce perfectly tiled ...
1
vote
2answers
145 views

Analyzing Betting (Keno) in Mathematica [closed]

Keno is a popular lottery game that is available with all of the larger casino softwares. The player is given a ticket with 70 numbers on it. He picks 1 to 11 numbers on the ticket. 20 winning numbers ...
0
votes
0answers
68 views

GraphicsGrid confusion

When I make a GraphicsGrid the numbers on the axes stay full size, which makes things very ugly. How do I make them smaller? In addition, when I select the ...
37
votes
9answers
2k views

Animating mathematica.se logo

As we all know our site's logo was completely generated by Mathematica. I suppose it is quite natural to make the next step -- to generate the animated version of this logo. There's a lot of space for ...
1
vote
1answer
143 views

Finding intersection of 3D lines

I want to find the intersection of 3D line. I want to detect the 3D light source position by intersecting 3D lines. ...
4
votes
2answers
315 views

PDF exports of ArrayPlot's are fuzzy (OS X)

[The following problem occurs on OS X; I don't know if it also occurs with other OS's.] If I produce a Graphics object with ...
0
votes
1answer
85 views

Revolving the area between two functions about an axis

I'm trying to graph the revolution of the area between two functions about an axis, but I'm new to Mathematica, and not sure how to proceed. My area is defined by ...
3
votes
1answer
136 views

Ugly plots when printing notebook to pdf

One image is worth one thousand words, so: Question: At what options should I be looking, so that what I see in my notebook is what I get in my printed pdf ? Here is the code I'm using: ...
1
vote
1answer
71 views

Possibility of evaluating the expression within a NestList at each iteration?

I want to rotate iteratively a triangle about the same point, increasing for each iteration the length of its side in the same proportion and change the color of its sides. I came up with the solution ...
0
votes
2answers
246 views

Combining Graphics & ContourPlot using Show

I was recently experimenting in Mathematica and was combining graphics and a contour plot and discovered the order of elements in show matters. Why would the order matter here? ...
2
votes
1answer
117 views

How to break graph to fill in the gap in pdf

I've printed my notebook into a pdf. There is a huge gap in the left page, due to the fact that the graph in the right page isn't divided to fill in the gap. Is there a way to fix it, preferably ...
1
vote
1answer
114 views

Using Manipulate with a control variable for selective recalculation

I'm trying to adapt Nasser's method for using a control variable inside Manipulate to selectively choose what part of the code should be recalculated depending on the controls changed. I've also read ...
23
votes
4answers
1k views

How to make a drop-shadow for Graphics3D objects

What's the best way to make a drop shadow for a 3D object? image = Graphics3D[Sphere[], Boxed -> False] I can get a blurry black outline of this: ...
11
votes
1answer
221 views

Finding minimal region with padding and linear map to circle

Suppose I have n ordered points. I would like to find a simple region that contains all the points and is close to the smallest region that contains the points except it is smooth and has some ...
2
votes
2answers
108 views

DensityPlot Increase Information

I am trying to make a density plot in Mathematica, however the distribution of the plot is not as visible as I would like. I plotted the same function in python and it contains a greater visible range ...
15
votes
3answers
550 views

How to get the real PlotRange using AbsoluteOptions?

The problem in general involves the unreliable behaviour of AbsoluteOptions when option values are implicitly specified (e.g. ...
1
vote
1answer
155 views

How to make a big image/dashboard containing various data-graph

I want to make and image/dashborad (to export to PDF) with many VERTICAL bullet graphs gauges. And I can´t making it, in a automatic way. In general, the question is QUESTION 1.- how to make any ...
4
votes
4answers
220 views

Filling and Shading an Harmonic Curve

Suppose I have an equation plotted as shown: ...
0
votes
2answers
352 views

Copy and pasted graphics are fuzzy

I have a function that creates a 2D line with filling to the axis. When I copy this graphic into word it is very fuzzy, so much so that the numbers and text are almost unreadable, not to mention the ...
0
votes
1answer
97 views

Hue function for negative arguments

I want to use Hue function for different colours with the argument being a function, i.e., Hue[f[i,j]] Now, ...
1
vote
2answers
80 views

ListPlot : range from $0$

I want to plot values of a table for example: table = {0.456, 0.7899, 1.3456, 9.8908} But I want to Plot points (x,y) like: ...
4
votes
1answer
114 views

Detect a graphic primitive inside a Graphic

Please excuse me if that question is too basic but I couldn't find anything in the documentation or on here. If you consider the following Graphic I would like to ...
0
votes
1answer
68 views

To put a plot inside of a plot [duplicate]

I'd like to put a figure of a 2D-plot into a larger 2D-plot (into some white-space), like in the example below: I don't precesely know how It's done, could anyone help me with this one? Is it with ...
1
vote
0answers
35 views

How do I change a ColorFunction filling to be top-down as opposed to left-right? [duplicate]

I've been stuck on a seemingly simple Graphics issue for quite a while now... I am trying to make a temperature distribution Plot that will have a colorFunction filling to show red when at a higher ...
20
votes
4answers
603 views

How to plot ternary density plots?

How can I get a ternary density plot just like the plots from OriginLab? ContourPlot and DensityPlot seemingly can solve the ...
3
votes
2answers
75 views

How to align the output of MatrixPlot with the output of Plot

I am trying to figure out how to align different types of plots into one image. For example in the following code, it plots two lines on top of a MatrixPlot. I want ...
11
votes
2answers
560 views

How to plot a barycentric line

I want to plot a barycentric function on an equilateral triangle (ternary plot). For example f1 = {Abs[Sin[x]], Mod[x, 2], Abs[Cos[x]]}; At the moment I evaluate ...
1
vote
3answers
172 views

Plot a table of ranges

I have table with values like: t = {1.234 <= a <= 2.345, 3.42 <= a <= 5.67, ...} and I want to plot this table, the ...
2
votes
1answer
193 views

Nicely illustrating the evolution and end-state of a discrete-time Markov chain

I'm simulating a discrete time Markov process on a finite state space corresponding to a linear interval $(x_1, x_2, ..., x_N) \in X$, where each time step $t_i$ involves updating the state of some ...
12
votes
4answers
683 views

Combine absolute and relative (scaled) coordinates

I am using Inset to add an Epilog to a plot. The position of the images (in my case: framed numbers) can be specified as an ...
12
votes
4answers
294 views

Prevent graphics render inside held expression

Assuming each odd line is input I would like the even lines to be the output of the following lines. In the above the Graphics are inside ...
6
votes
1answer
1k views

Spiral pattern and Fibonacci numbers

I'm want to generate a 2D spiral pattern like the the one shown in the following figure. I can generate the spirals one by one, but I think there ought to be a more efficient method for generating ...
2
votes
1answer
133 views

ListPlot - plotting values with different range

I have three tables: L, S and U. In first table I have values from range (0,1), in second ...
0
votes
1answer
118 views

How to use ParametricPlot Wih Conditions (or similar)

I´m analizyng the game "Battle of the Buddies" similar to "Prisioner´s Dilenma" All works fine, BUT... I want to draw in red the point whose coordinates are less than the coords of a strategy. ...
2
votes
1answer
96 views
4
votes
2answers
158 views

Full width of graphics in GraphicsColumn

I have a list of graphics which are all the same width, and I would like to combine them into a single Graphics object that has them all stacked on top of each other, column-style, without changing ...
-5
votes
1answer
73 views