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

3
votes
1answer
64 views

join two ListVectorPlots

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

Align axes in GraphicsGrid - with one rotated figure

I would like to align the axes of the three plots: g3, gPosteriorMarginalMu and gPosteriorMarginalSigma: ...
2
votes
1answer
131 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. ...
6
votes
3answers
357 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 ...
1
vote
4answers
106 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 ...
5
votes
4answers
240 views
2
votes
1answer
202 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, ...
0
votes
1answer
99 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 ...
11
votes
2answers
243 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
96 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 ...
3
votes
1answer
125 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: ...
0
votes
1answer
108 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
2answers
60 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, ...
7
votes
1answer
271 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 ...
5
votes
3answers
153 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: ...
3
votes
2answers
115 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 ...
0
votes
1answer
142 views

Arbitrary Oriented and Translated Ellipsoid (Euler Angles)

EDIT! This is a recent post updated and with better wording. The title has also changed. Any attempts to find something relevant have failed so far. The closest is this Ellipsoid. First some ...
4
votes
2answers
113 views

Two overlapped spheres with boundary lines

How can I have two overlapped spheres given by ...
2
votes
2answers
81 views

Plotting cones from data read from a file

I would like to plot cones centered at specific points in a lattice and with different orientations and colors that depend on them. For this, I have the data in an external file with 11 columns: 1) ...
3
votes
1answer
120 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 ...
2
votes
1answer
77 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 ...
9
votes
2answers
131 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 ...
23
votes
6answers
5k views

How to draw an ellipse arc in 3D?

There is no Circle or Disk object in 3D. I quickly found a way to use Cylinder (thin lines, no faces, very flat): ...
40
votes
3answers
1k views

How can we make publication-quality PlotMarkers without version 10?

Suppose that for certain reasons we are not yet using Mathematica version 10, or we have a version with buggy PlotMarkers. It is well known that the default markers ...
16
votes
3answers
2k views

How to make Mathematica graphs in Microsoft Word independent from Mathematica?

When I open a .docx file containing Mathematica graphs on a computer without Mathematica software installed, the graphs look corrupted. For example, ...
1
vote
1answer
112 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 ...
5
votes
2answers
390 views

How to export images in EPS format that can be opened in CorelDraw

I am preparing a paper. The journal requirements are odd: only eps files for pictures are accepted. All pictures I have drawn in Mathematica and exported in eps format in the usual way: ...
1
vote
1answer
53 views

Framed text in a Graphics expression [closed]

How is it possible to insert Text inside Framed as below? ...
31
votes
7answers
6k views

Sizing cells in a GraphicsGrid/GraphicsRow

I would like to add a colour bar to a plot. I tried to use GraphicsRow for this. In a GraphicsRow, each item is given the same ...
1
vote
1answer
74 views

change scale of graphics

I use the following codes to produce to related graphics. ...
5
votes
2answers
234 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
91 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 ...
15
votes
3answers
1k views

How can this type of optical illusion be created in Mathematica?

I see these around the web and would like to make them in Mathematica. Combining them in an array is actually quite mesmerizing!
6
votes
1answer
128 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, ...
2
votes
2answers
85 views

Issue with pure function when mapping dynamic content within graphics scope

What I am trying to achieve can be described using following code: vector = {{0, 0}, {1, 0}}; Graphics[Circle[#, 1] & /@ vector] In the above, a pure ...
3
votes
3answers
161 views

How to read the intersect corodinate of two lines from the ListLinePlot?

Suppose I have two curves intersect at some point, how can I read the coordinates from the graph, not read by eye, but find it with more precision by computer. For example, here are two lists created ...
9
votes
1answer
145 views

Coloring spiral structures

In a previous question Original post @Julian S. proposed a method for coloring spiral structures. However this method works well only if the two spirals do not merge together. For example, for these ...
4
votes
0answers
64 views

Size problems combining objects in a Graphics using Inset

The Problem I need to put together different graphics objects in a precise way inside a Graphics. Some objects are drawn directly by graphics primitives, some ...
0
votes
0answers
49 views

How to delete part of a constant plot?

I have a plot that looks like this: and what bothers me is that the center straight line is that long. The plot would look a lot better if I were somehow able to delete everything from -3 to 3. Is ...
8
votes
1answer
157 views

How to discretize a BezierCurve?

Bug introduced in version 10.0 and persisting through 10.3 DiscretizeGraphics is new in 10.0. I need to create a discretized region from a ...
3
votes
2answers
624 views

Mapping points on the unit circle

I have a set of points P that are evenly spaced on a square grid of length 1. I would like to map these points to the circle of radius 1 as nicely as possible, while preserving relative positions as ...
28
votes
2answers
1k views

How can I pack circles of different sizes into a spiral?

Given a list of circles of different areas, I need to arrange them tangentially in order of increasing area and spiraling outward. An example of the type of packing I'm attempting is shown by the ...
1
vote
1answer
47 views

what causes this display problem (missing arrows) with this adjacency graph [duplicate]

AdjacencyGraph[{{1, 1, 0}, {0, 0, 1}, {0, 0, 1}}, DirectedEdges -> True] If you look very closely at the resulting visual display in a notebook (below), you ...
8
votes
1answer
128 views

Creating a certain image (3D shadows, highlighted intersections)

I would like to learn how to code within Mathematica the following picture: I tried using ...
16
votes
6answers
3k views

3D surface that looks like a virus

I have been recently using Mathematica for composing animations that are part of the supplementary information of my papers. I am currently trying to build an animation that involves a viral ...
9
votes
1answer
76 views

ListPlot3D: combine VertexColors and RegionFunction

I've found that RegionFunction and VertexColors don't work together. Example: ...
9
votes
1answer
403 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? ...
29
votes
4answers
4k views

Creating a 2D meshing algorithm in Mathematica

As what is proving to be a difficult, but entertaining task, I am attempting to adapt a 2D meshing algorithm created for MATLAB and port it to Mathematica. I understand meshing functions already exist ...
0
votes
0answers
20 views

change markers to arrows using ListLinePlot [duplicate]

I'm trying to plot temporal data using ListLinePlot, where the first entry is the first point in time, second entry is next point in time, and so on. I'd like to replace the markers with arrows, in ...
9
votes
3answers
82 views

Grid changes FrameTicksStyle font size

I have a contour plot that I'm trying to organize into a grid using Grid. But Grid changes the ...