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
557 views

Plot a function for different parameters

Suppose I have a function that I want to plot for several values of a parameter all in the same window. For instance the function $f$ defined as ...
0
votes
1answer
60 views

Graphics with different dimensions

I'm trying to have two visualize the vectors $(1,2)$ and $(2,1)$. Then, I wrote: Graphics[Arrow[{{0, 0}, {1, 2}}]] and ...
0
votes
0answers
53 views

ParametricPlot that worked in Mathematica 9 stops working in Mathematica 10

I've updated to Mathematica 10 and I am trying to plot the solution of a system of ODEs and I'm using exactly the same file that used to work in Mathematica 9, but now when I want to plot the solution ...
1
vote
1answer
93 views

How can I plot a sector of an ellipse using the central angle and not the Eccentric Anomaly?

It would appear that the Disk function, when asked to produce the sector of an ellipse between two angles treats those angles as Eccentric Anomalies (i.e. arguments ...
20
votes
7answers
2k views

Find intersection of pairs of straight lines

I have a list of 24 points, in which two consecutive points (1st and 2nd, 3rd and 4th, …) are supposed to form a line: ...
9
votes
1answer
116 views

A bug in Rasterize?

I plot a straight diagonal line and then simply rasterize it. Consider what happens (Mathematica 10.2 on Windows 7 x64): ...
13
votes
0answers
399 views

Circle with negative radius?

Why does this work: Graphics[{Circle[{0, 0}, -Pi/4]}] But this doesn't? Graphics[{Circle[{0, 0}, N[-Pi/4]]}] Telling me: ...
0
votes
1answer
42 views

Filling option failing when used with ListLogLinearPlot

As mentioned in this question the following filling seems to work well. ...
1
vote
1answer
57 views

Streamplot in one direction

R gives explicitly the seeding points and I want the stream lines to be drawn in one direction only, outside the circle ...
3
votes
2answers
149 views

Determine distance between two lines in an image

I have the fallowing image: http://postimg.org/image/qv7q9geuh/ In this image there are 5 more or less vertical peaks in total. Let the x-axis be the horicontal axis and y-axis be the vertical axis. ...
1
vote
2answers
119 views
1
vote
0answers
50 views

Graph equivalent of GraphPlot's MultiEdge style?

I like the default display of Graph much better than that of GraphPlot, but I do not see how to turn off the use of multi-edges ...
3
votes
1answer
222 views

Circular crop: extract non rectangular parts of an image

I want to extract a part of an image. For example, let's start with something like the following image: I would like to apply some image processing to get this result: I have tried to ...
8
votes
3answers
811 views

How can I set the background color to the Popupmenu?

I want to set the Background color of a PopupMenu to blue. I already searched in the documentation center, but I didn't find any ...
96
votes
6answers
8k views

Generating visually pleasing circle packs

EDIT: (my conclusion and thank you note) I want to thank you all guys for this unexpected intellectual and artistic journey. Hope you had fun and enjoyed it the same as I did. I would like to ...
4
votes
1answer
171 views

Drawing a RegionPlot but for data instead of a function

I am trying to draw something similar to RegionPlot, but instead of functions I only have data matrices. For example, I have the following 3 pieces of data ...
0
votes
1answer
82 views
23
votes
3answers
5k views

how to make graphic timelines in mathematica

Hi does anyone know how to make timelines with mathematica? Something like that would be great!
6
votes
1answer
397 views

How to fill curves with a color gradient?

I would like to produce a graphic like this but with a continous color gradient between the outer curves. Is it possible to achieve this by using the Filling ...
0
votes
2answers
111 views

How to create a mirror-symmetrical list

My data file can be found here: data data = Import["mnl.out", "Table"]; First we remove the headers ...
1
vote
1answer
102 views

How to Discretize Tube

Is there a way to outline text? In this topic,The BoundaryDiscretizeGraphics can Discretize a Text unexpectedly,It's amazing me,so as a same method I want to ...
1
vote
0answers
235 views

Frame and white background not working (all other colours are fine)

Bug introduced in 6 and fixed in 7 Though my question my be related to this one, it doesn't look like it can easily be solved in the same way, so I hope not to be double-posting. I am trying to ...
11
votes
7answers
2k 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: ...
0
votes
1answer
91 views

How to I plot a vector and a line on the same graph?

For example I want to plot the vector <7, 20> on the same plot as the line {t, 6t+10}
0
votes
1answer
85 views

3D object on 2D pattern - how to adjust?

I want to re-create this pattern (apart from arrows which play only role of direction indicators; black line is a Sin/Cos function): I came up (for now) with this solution (code below). How to ...
0
votes
1answer
53 views

Recommended way to style rectangles in drawings [closed]

With the drawing pallette I can create free-form graphics, but the built-in styling options only go so far. Obviously I can create an image somewhere else and then paste it into graphics box, but ...
2
votes
1answer
82 views
2
votes
2answers
52 views

Line graphics opaqueness issue [closed]

When I plot with Line[] and Opacity[.2] where the lines cross \ darkens, I would like to be able to plot a consistent opaque ...
0
votes
1answer
133 views

Tubes on spiral - Graphics 3D

Now I am working on something like this: ...
7
votes
1answer
271 views
24
votes
2answers
426 views

How can I export graph as PDF with metadata such as Title and Author fields

I want to export a figure from Mathematica in PDF format. Moreover, I want to fill Author and Title fields of the PDF. For example, to fill Author field, I use the following code: ...
8
votes
2answers
13k views

Plot legend inside a Show [duplicate]

Possible Duplicate: Using PlotLegends with Show messes up the graphics I have created a composite plot function: I want to add a legend to it, however ...
7
votes
3answers
767 views

Color function doesn't span the whole color range in MatrixPlot

In matrix visualization, for instance, MatrixPlot[{{1, 2}, {3, 4}}, PlotRangePadding -> 0, ColorFunction -> "Rainbow"] the color map does not cover the ...
24
votes
2answers
611 views

Efficiently generating 2-D Gaussian random fields on the sphere

Context A couple of years ago I posted this question for an efficient code to generate an n-D Gaussian random field (sometimes called processes in other fields of research), which has applications in ...
7
votes
1answer
82 views

How do I stop resizing in Plot3D upon mouse click?

This has always bugged me and wondering if there is a fix. When I evaluate a Plot3D I get a graph as expected. However, when I click the graph with the mouse it resizes to a smaller size. I can ...
49
votes
6answers
5k views

How to plot Venn diagrams with Mathematica?

How does one plot Venn diagrams with Mathematica? I've searched quite a bit and I've found one source at MathWorld which provides the source code for doing them. But I don't understand this code, can ...
2
votes
1answer
52 views

BarChart EdgeForm not producing correct colors

EdgeForm is not producing correct colors for the borders of my bars. My code: ...
0
votes
1answer
63 views

Graphics3D evaluation not completing [closed]

I have a list of cuboid centers, and I want to plot them. I am using the following code, but the evaluation never completes. How can I get it to work? ...
1
vote
1answer
113 views

Put error bars in specified plots spots in a graph?

Hello again i have the next problem: i have done a very nice graph and i need to incorporate the standard deviation on graph but i only need to put those error bars in just some plots on the graphic ...
1
vote
0answers
35 views

Misalignment of plot points when adding error bars [duplicate]

Following the second solution from Plotting Error Bars on a Log Scale on how to add error bars on a ListLogLinearPlot I tried to change the error bar indicators ...
2
votes
3answers
370 views

Plot Two Circles and color their difference

I am trying to plot two circles with radius 1 and another with radius 9. Both are centered at $(0,-1)$. I then want to color in the distance between the circle of radius 9 and the circle of radius 1. ...
15
votes
1answer
2k views

How do I flatten transparency on a graphics, for conversion to eps or similar?

I've got a graphic that I'd like to save as an eps file. Trouble is, the graphic has some transparency to it. Since the eps format doesn't handle transparency, I want to flatten the transparency out, ...
2
votes
1answer
159 views

Drawing lines between matching numbers in a two column table

I have two lists of numbers of the same length. I want to display the numbers in a table with two columns, one list in each column. I also want to drawn lines between any number in the first column ...
2
votes
2answers
111 views

How to use GraphicsGrid with ListPlots that have a PlotLegend?

Here's a contrived example of what I'm trying to do. Basically, I want a function to return some object that has two plots next to each other (or one on top of the other), both large, and both with ...
2
votes
2answers
121 views

Using color gradients in Graphics3D

I would like to use the thermometer color gradient in Graphics3D. Taking an example, I have the following: ...
0
votes
2answers
176 views

how to use a ready function in your code for panning and zooming on 2D plots? [duplicate]

As I said before for the time being, I don't want to use Mathematica as a programming tool. I'm just using it as a calculater to compute integrals, solve equations, ...
2
votes
0answers
45 views

Why is an imported plot different from the saved one?

I have a question concerning the importing of previously saved graphics. So I drew a plot in Mathematica and saved it by right clicking on it and saving it ("save as..."). When I open this (.pdf) ...
4
votes
2answers
177 views

How to remove black edges between spherical shell?

I am interested to know how to make the concentric shell smoother. This is what I have now: This is the code i used to generate that image: ...
4
votes
1answer
100 views

Rotate imported images which are inset into a Graphics container and then overlapped?

The methods given as answers to this question do not seem to work here. I suspect it is because of my use of Inset function. Consider two .png images hand1 and ...
18
votes
3answers
1k views

Using Inset[..] to overlay a Graphics3D with its raster version

Preamble First let me explain the why. You can skip this and go directly to the question if want to answer it right away. We had more than one discussion about how to produce nice looking 3d plots ...