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
0answers
45 views

Question about treillis structures

I have difficulties finding a command to plot multiple segments connected in nodes in Mathematica. Ultimately, my goal is to modelise something like this by entering nodes coordinates. Also, the ...
8
votes
0answers
244 views

Minesweeper beta:How to Dynamic a lot of graphics with high-speed

Recently I want to write a game,Minesweeper.Here is my completed code. ...
7
votes
3answers
614 views

Shading regions in ParametricPlot

I am using ParametricPlot to get an X vs Y plot. I want to shade the area enclosed by the ...
0
votes
1answer
45 views

Draw an n-gon with Polytopes package?

Given $n$, I'm interested in generating the vertices of a regular $n$-gon. I noticed that this was possible for certain values of $n$ using the Polytopes package; e.g., via ...
2
votes
1answer
144 views

Copying each object in a plot separately as an image

I would like to copy a plot from Mathematica as an image, into a PowerPoint slide. This plot has two curves. When I try to do the (naïve) usual "copy graphics" and paste, I find the full plot (along ...
1
vote
0answers
48 views

Align a plot with other rotated plot

i'm plotting two plots one of them is rotated 90º and has no axes labels, so my problem is that when i plot them together in a row the alignment options bottom top align the top to top or bottom to ...
12
votes
1answer
3k views

how to make graphic timelines in mathematica

Hi does anyone know how to make timelines with mathematica? http://images.nationmaster.com/images/motw/atlas_middle_east/turkey_timeline.jpg something like that would be great! thanks
1
vote
1answer
73 views

Graphic timeline from array

I found this question where someone put some code to graphic a timeline based on a certain number of events. In that code in particular, the events are hard coded one by one, I want to modify it, so ...
11
votes
2answers
797 views

How to vary color of fill between listplots based on y-distance between them

I have two lists with the same x-values but different y-values. I have used ListPlot to plot and fill the space (line) between them; however, I would like the color ...
2
votes
1answer
114 views

How to make hollow octahedron 3-compound?

I would like to remove facets from a graphic - like on the picture below. Link I tried to combine these two graphics: ...
1
vote
1answer
65 views

How to embed a filled Region in a Graphics?

Let for example: regn = RegionDifference[Rectangle[{-2, -2}, {2, 2}], Disk[{0, 0}, 1]]; The only documented way I found to draw a gereric region ...
0
votes
0answers
36 views

Trying to rotate a graphic over a field of parallel lines

I have a 10x10 grid of unit squares (picture a partial coordinate grid bounded by (0,0) and (10,10)) given by ...
5
votes
0answers
57 views

Tooltips do not seem to work with InfiniteLine (ConicHullRegion) in 2D Graphics

The InfiniteLine functionality added to version 10 is very handy for obvious reasons, however a Tooltip added to them in ...
7
votes
0answers
75 views

Weird behaviour when using Scale, Rotate in Graphics

(Edited to simplify drawing) I have a drawing of two tangent circles: ...
0
votes
1answer
46 views

Strange wiggles on the surface of a ParametricPlot3D

I'm trying to plot two cones but when I try to display them, Mathematica (10) makes the edges wiggly. My code is: ...
0
votes
1answer
229 views
7
votes
3answers
435 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 ...
1
vote
2answers
83 views

Draw Multiple Polygons Given Their Vertices

Hi I have a very simple question but I haven't been able to find a set answer. How would I draw a bunch of polygons on one graph. The following does not work: ...
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 ...
7
votes
4answers
284 views

Finding the point of minimum distance between two parametric functions

I have two functions re and rm, for which I computed the minimum distance between them. Now I would like to add a point at the ...
5
votes
1answer
116 views

ListLinePlot of multiple series with data value and legend appearing as the cursor moves over ploted lines

I have multiple series and I am plotting using Mma's ListLinePlot function. But I am trying to implement a feature to my plot so that I can view legend and corresponding values of the series at a ...
19
votes
7answers
903 views

Around the Clock

I want to produce with Mathematica something like this Or this 12 hours should be arranged in a pleasing ("rotated") style around / within a rectangle. I don't ask for the hands - depending on ...
2
votes
1answer
83 views

ListPlot with background image?

I need repetitive plots like this below. I invented that I refuse to use pen and I will plot the points in Mathematica, then change opacity, then change contrast and voula get the points to the graph ...
7
votes
4answers
189 views

Strange behaviour when line-wrapping text in a Pane

I noticed some strange behaviour of Pane. In the result from the following code, the line wrapping is not consistent: why do the first and last line contain four ...
25
votes
7answers
2k views

How to draw a spring?

I am new to Mathematica and have recently been exploring graphical animations. So I was experimenting with simple concepts in periodic motion and hence wondered how can I draw a simple spring? Is ...
6
votes
3answers
570 views

How can I completely remove the ListAnimate controls?

I want to use ListAnimate to show an animation but I want to remove the slider and all of the buttons from the top and show the animation panel only. There is an ...
0
votes
1answer
60 views

Preventing Colors of Graphics from Blending

I am displaying multiple Disks that overlap and many of the Disks are different colors. Currently, the regions in which the Disks overlap are a color that is a mixture of the two Disks. I would like ...
2
votes
1answer
78 views

How can I adjust ContourPlot in Mathematica?

I have problem because of the max point and min point, when I have too high or low data point, it just make it white. Here is example of data ...
4
votes
3answers
191 views

Changing the atom color for plotting xyz-files

Mathematica takes the standard color code for atoms when plotting an xyz file, but I want to customize the color for the specific atoms. I really become desperate as I did not get it so far. ...
15
votes
4answers
433 views

Exclude data from a list

Let's create some random sample data data = Table[{RandomReal[{-10, 10}], RandomReal[{-10, 10}]}, {i, 1, 300}]; Then we plot them using ...
1
vote
0answers
49 views

Displaying a matrix as an array of solid rectangular blocks [duplicate]

I would like to plot an array of numbers as a surface, with each number the height of a square, and with the squares connected to adjacent squares with vertical rectangles, up or down as appropriate. ...
45
votes
1answer
2k views

Implementing a first person view of 3D objects in a scene

I've created the following scene with a Chinese-style building surrounded by trees, and a horse and a rabbit grazing on the grass in Mathematica (don't ask me why there's a bust of Beethoven in ...
12
votes
1answer
331 views

Cropping a Voronoi diagram

Someone know how can I get the correct crop of this Voronoi image using RegionFunction? As you can see, there is a lot of undesired white regions inside the left ...
4
votes
2answers
113 views

Opacity renders lines incorrect in certain viewing angles

Trying to learn how Opacity works, I found a possible issue. Generating points in a square spiral with: ...
5
votes
2answers
222 views

Mapping StreamPlot onto spherical surfaces

Suppose I have some vector field equations $(f(\theta,\phi), g(\theta,\phi))$. The StreamPlot can be created easily in 2D, but I would like to visualize the stream ...
1
vote
0answers
38 views

Sizing elements correctly in a DistributionChart with custom ChartElementFunction

This is a follow-up question to Histogram scale error when using DistributionChart; Weird output of DistributionChart is also related. I'd like to make a DistributionChart where the elements are ...
6
votes
2answers
1k views

How to align rotated tick labels?

How can I align tick labels so the tick label text ends centered under the data point? Of Course it works fine with a rotation of 90 Degrees, but not with 45 or similar angles. I see an example of ...
2
votes
1answer
114 views

Plot: How set markers in plot in front of axes

I draw a plot using ListPlot. But I noticed that PlotMarkers are 'covered' by the axes; see example below: I was trying to ...
2
votes
2answers
77 views

Opacity function applied to Graphics Objects

I think this is a stupid/banal question, but I have searched the forum and I haven't find a solution (yet). I need to apply a variable opacity function to a graphics object (say a rectangle). For ...
1
vote
0answers
48 views

passing values between widgets in GUIKit

I am writing a short GUIKit script with one TextField widget that takes the path of the image and a button widget which imports the image. The problem I have is ...
8
votes
2answers
441 views

Distorted graphics when using custom ticks and AspectRatio -> Full

Bug introduced in 7.0.1 or earlier and partially persists through 10.0.1 or later I am having a problem using custom tick specifications along with ...
2
votes
2answers
76 views

Simple plot control

Absolute newbie question: Plot[2x-1,{x,-4,4},GridLines->{Range[-4,4],Range[-8,8]}] works about as expected, except that (a) I would like the tick ...
1
vote
1answer
123 views

How to create a Poincare disk type kaleidoscope in Mathematica?

Creating a Kaleidoscope in Mathematica is not a new topic at all, examples can be found from the links like: Wolfram reference and Wolfram demonstrations. My question is how to create Poincare disk ...
0
votes
1answer
61 views

Manipulate Slider Value on the Plot

Lets say I have a very simple manipulate in Mathematica given by: Manipulate[Plot[Sin[a x],{x,-2 Pi,2 Pi}],{a,0,5}] I want two things which I am unable to do: I ...
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
2answers
321 views

draw part of parabola using graphics

today I was doing my physics homework. one of the questions was draw velocity-time and position-time graphs from the acceleration-time graph. So for the first step I draw acceleration-time using ...
1
vote
1answer
46 views

Changing the width of BarLegend

Is it possible to change the aspect ratio of the BarLegend in Mathematica? The option LegendMarkerSize, in my case below, only ...
0
votes
0answers
23 views

“Partial” graph layout (with a fixed core)?

Is there a way to apply a graph lay out algorithm to a Graph object in such a way that a subset of its vertices and a subset of its edges are fixed beforehand, and ...
3
votes
2answers
174 views

Show cannot combine two graphics

First we load the data file data = ReadList["data_smp.out", Number, RecordLists -> True]; I know that I should provide some sample data but in this case the ...
1
vote
1answer
141 views

Image shaking when Manipulate with slider

How to prevent the Graphics3D object in following code from shaking when continuously changing the phi parameter? ...