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

13
votes
1answer
304 views

Wiggly and imprecise animated gif output

Trying to make animated gif of zooming into famous Ford circles. With the code ...
3
votes
2answers
239 views

generating randomly oriented non-intersecting cylinders

I could not find anything relevant with "googling" (only this) I can create a set of randomly oriented cylinders (code found here) ...
0
votes
0answers
85 views

Intersection of two cones

I want to plot a region difference between two cone, but the results seems to be very deformed.. ...
10
votes
2answers
395 views

How to extract a region shape from an 2 colour image?

I'll start by saying that I don't know anything about image processing. I have an image and I need to extract its outermost shape for use in a WordCloud. The image ...
1
vote
3answers
121 views

how to find circles that intersect a square

I use the following (based on ideas and functions I got as ansers in [1], [2] by, repsectively, @ybeltukov and @J.M.) in order to find random circles with centers inside a unit square that intersect ...
0
votes
0answers
44 views

Anyway to add Epilog graphics outside of plot area without extending the axes? [duplicate]

I'd like to be able to add a line below the x-axis of my plot but not have the y-axis extending down to cover this region (as it defaults to). For example: ...
4
votes
4answers
230 views

Combine multiple swatch legends

How can I combine multiple SwatchLegends? As a minimal example: ...
1
vote
1answer
111 views

Import graphml file in mathematica

I am trying import a graphml file I created with NodeXL in mathematica in order to create a network. However when i try to import it I get the error message: "Cannot import data as GraphML format". ...
2
votes
2answers
88 views

How to created visualization dashboard for summary data?

I would like to create the following dashboard: The numbers indicate my desired dimensions for the cells. I would like the cells to contain a regional plot, a trend line, and bar charts. I have ...
5
votes
1answer
99 views

inset legend from top right corner / find size of swatchlegend bounding box

The question is the following. Using Inset, we can insert a legend in a Plot (in a Graphic, in general). E.g. ...
6
votes
0answers
61 views

Artefact at joints within BSplineCurve of low Opacity

I want to eliminate the dots of higher opacity that occur at the joints within a BSplineCurve of low opacity. Small rectangles of greater opacity, shown below, ...
3
votes
1answer
107 views

Replicate an image from Documentation Center (EulerMatrix)

EDIT I try to produce an image similar to that (see here) but this time with an ellipsoid. I hope I am not wrong but the code that creates this beautiful image is not available in Mathematica's ...
1
vote
1answer
99 views

Show the number of rectangles under a curve

I am trying to manipulate the number of rectangles under a given curve, so far I can show the size of each rectangle, but I am not sure how to tell the number of rectangles. ...
2
votes
3answers
107 views

How to make plot and a graphics have vertical axes align in grid [duplicate]

How can I modify the following code so that the vertical axes in both the graphics and plot align up? I think the aspect ratio for the plot is good. It appears that changing the ImageSize of the plot ...
0
votes
0answers
24 views

Dynamic Epicycles [duplicate]

The following code is meant to produce a dynamic graphic of epicycles. (I'm having A LOT of trouble copying my code into this editor so that it can be copied back to Mathematica and run, please let me ...
7
votes
4answers
292 views

Dynamic Epicycles

Thanks to all the thorough answers and comments, I've written the following code, which builds a variable number of epicycles. However, when I apply the formula ...
0
votes
0answers
51 views

How to draw a distribution plot (dotplot?) like this in mathematica? [duplicate]

I believe I've seen this answered already here in Stack Exchange but I could not find it again, so here I am asking, hoping that someone knows this other post I am referring to. Here are examples of ...
4
votes
1answer
107 views

Tell if a point is inside a FilledCurve

Convert a letter into a FilledCurve: ...
2
votes
1answer
66 views

modifying graphics3D objects after their creation

Suppose I want to demnstrate two ellispoids; one with the center at the origin and the other translated. After the advice I got in the last question I use ...
1
vote
1answer
76 views

change the size of the image

If this is trivial or a duplicate I apologize. I failed to find something. I have the following code ...
1
vote
0answers
54 views

Random protein in 3D [closed]

I would like to ask for help how to encode the following: I make a random sequence of aminoacids to make a protein, but how to make this visible like this: ...
3
votes
1answer
66 views

join two ListVectorPlots

I have two ListVectorPlots, the are given below ...
2
votes
1answer
139 views

BarLegend too large for plot in version 10.3

In previous versions, the following code, taken from here from @kglr, used to give a reasonably sized legend, but in version 10.3 gives a huge legend. ...
1
vote
4answers
130 views

Plotting animated point on a polar plot

How can I animate a point on a polar curve? I have used Animate and Show together before in order to get the curve and the moving point together on the same plot, but combining the polar plot and the ...
6
votes
3answers
408 views

find the maximum number of not intersecting circles inside an ellipse

$Version "10.3.0 for Linux x86 (64-bit) (October 9, 2015)" (Sequel to 98724 and 99345) (I use codes originally created by Andy Ross, ybeltukov and J.M.). I ...
2
votes
1answer
212 views

Draw a de Bruijn graph with random vertex size

I am trying to draw a graph that looks like below, This the code I have so far, ...
5
votes
4answers
254 views

Finding intersection points of two graphics

I am drawing a curve from a list using: ...
12
votes
2answers
259 views

Adapting KnotDiagramData to form more visually pleasing diagram

Graphics[KnotData[{5, 1}, "KnotDiagramData"]] gives but I would like to create diagrams like this remeniscent of Celtic knot designs (which I made by adapting ...
5
votes
1answer
107 views

Minimal perimeter of all possible polygons

We had a fun problem for a student activity today: Let $P(z) = z^8 + \left(4\sqrt{3} + 6\right)z^4 - \left(4\sqrt{3} + 7\right)$. What is the minimum perimeter among all the $8$-sided polygons in the ...
0
votes
1answer
105 views

Plot tree edges of a tree-form list

I'm trying to plot a tree from a tree-form list. The nodes should be connected from left to right (as usual). My range values are ...
0
votes
1answer
123 views

How to draw cylinders inside a cylinder

It can be considered as a sequel to 98724 I adopt the code of ybeltukov (thanks again) and I slightly modify it. ...
3
votes
1answer
161 views

Animating magnetic field lines on a circle

So I want to create a changing vector as a function of theta and have it's origin stay on the path of a circle. The vector I want to plot is: ...
7
votes
1answer
275 views

Plot the 3D complement

I have plotted a 3D region using Show[RegionPlot3D[set1, opt1], RegionPlot3D[set2, opt2], RegionPlot3D[set3, opt3]] So this command plots the union in $\mathbb ...
3
votes
2answers
73 views

How to label a single Tick mark at a specified tick location

I am attempting to annotate a graph in a very simple manner. This is 2D plot of a function over a range of x-values, for example, let's say 0 to 15. By default, my plot labels the Tick marks as 0, ...
3
votes
2answers
121 views

Customized ListPlot

I have an external data file containing the elements (t,x,y,px,py) of an orbit. Here is a sample data file. Now I want to ...
5
votes
3answers
166 views

Simple triangular meshes of primitive shapes

I'd like to generate triangular meshes or a cylinder and sphere primitives as part of a lattice meshing program I am writing to experiment with Mathematica. Consider the following snippet: ...
4
votes
2answers
130 views

Two overlapped spheres with boundary lines

How can I have two overlapped spheres given by ...
2
votes
1answer
80 views

ColorDataFunctions applied to Tables of Graphics?

I'm trying to make a graphic according to a List, n. n has integer values that go from ...
3
votes
1answer
143 views

Update or Animate an ArrayPlot or MatrixPlot?

I am trying to add new row or column or points to a 2D plot as I keep generating the values. The trick is by using this method I will not be required to store the big array or matrix and will be ...
9
votes
2answers
148 views

How do I overlay things onto a BarChart?

I have a fairly complex sort of BarChart that I want to overlay with other graphics. For concreteness, let's assume that I want to overlay a ...
2
votes
2answers
164 views

To change the pattern of sphere surface in Graphic3D

I used of this command to draw a sphere ...
13
votes
2answers
505 views

Advanced graphics with Mathematica

Ten years ago I bought a book by Tom Wickham-Jones, Mathematica Graphics: Techniques and Applications. I read parts of it but then I forgot its existance. In recent years I read the nice book of ...
3
votes
3answers
233 views

How to convert an output of a matrix into a PNG image?

Using @m_goldberg's code I have created a matrix with the following command: ...
24
votes
4answers
1k views

How to draw cylinders inside a cube

I want to create the following graphic (ignore the unit vectors). What I do is the following (not the most elegent and smart way I guess:-)!): 1) Use the code below to generate randomly distributed ...
1
vote
1answer
135 views

Transform a 3D objects to binary 3D matrix [closed]

Suppose that we have an unknown 3d object and we need to estimate it. We suppose that the object is inside a grid as below and we can do some test to eliminate the cubes or"voxel" which are not a ...
1
vote
1answer
58 views

Framed text in a Graphics expression [closed]

How is it possible to insert Text inside Framed as below? ...
1
vote
1answer
77 views

change scale of graphics

I use the following codes to produce to related graphics. ...
5
votes
2answers
251 views

Generate random non-intersecting lines inside a square

EDIT I have the following code which generates (pseudo-) randomly oriented and distributed but not intersecting lines. In fact, the code is from the reply I got here: ...
1
vote
0answers
97 views

How to plot several small circles in a bigger circle [closed]

I want to plot several small circles in a bigger one with constraint minimization. The distance between any two small circles must be >= to 2*the radius in order not to enter one another. When I ...
6
votes
1answer
130 views

Plotting issue — possible bug?

Issue: a plot that previously worked in version 10.1 (see first figure below) produced an odd looking graph when re-evaluated in version 10.2 (see second graph). I have downloaded the latest version, ...