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

10
votes
2answers
463 views

create an (almost) hexagonal mesh on an ellipsoid

EDIT I edited the question in order to take into @Kuba's comment. I want to create this figure with Mathematica (in particular an almost hexagonal mesh on an ellipsoid; thanks to @Kuba I know this ...
0
votes
1answer
58 views

How to produce a outer frame around a plot [closed]

The following question is related to plots and graphics. For a plot: ...
1
vote
1answer
99 views

Generate $n$ randomly oriented non-intersecting cylinders with fixed radius and length

This post is in reference to the previous question here. How could I adapt the solution given to have the following constraints: fixed radius, fixed length, number of cylinders, and within a ...
0
votes
1answer
97 views

Move figure to origin [closed]

I have used PixelValuePositions to get coordinates from a figure. But I would like to move the figure, so the origin is in the middle of the figure. An example ...
6
votes
0answers
76 views

InterpolationOrder has no effect on ListContourPlot when the data is of the form {x,y,f[x,y]}

This is related to the issue brought up here, if you want to mark it as duplicate feel free to do so, but it is slightly separate. Take two sets of data, identical except for the form, ...
2
votes
2answers
111 views

Combine graphics with GraphicsGrid

...
4
votes
2answers
161 views

How to set the bar exactly in the center of plot marker?

ErrorListPlot usually does not put the error bar exactly in the center of the plot markers. For example: ...
6
votes
1answer
140 views

Bug in Export - known by Wolfram Support - upper plot margin depends on string length of upper horizontal axis label

Bug introduced in 9.0 and persisting through 10.3 or later ! See at bottom the answer by Wolfram Research. I am running Mathematica 10.3. For test purposes I have used the following code: ...
3
votes
1answer
135 views

Is there a way to control the placement of individual tick mark labels?

Let me start by saying there are a lot of other questions here on SE and elsewhere about tick marks in MMA but I think I am correct in saying that none of them cover exactly what I want (apologies if ...
1
vote
1answer
131 views

Reducing the size of exported .eps files to the minimum necessary

Running version 10.3 on my Power Mac with 22 Gbytes of memory I can create and export an .eps or .pdf graphics such as, ...
2
votes
3answers
154 views

select from a list of disks

I have the following list of centers of disks. ...
2
votes
2answers
187 views

intersecting cylinders

I try to replicate the two figures of two intersecting cylinders from here. I tried ...
2
votes
0answers
212 views

How to convert an uploaded image to a “dot-to-dot” puzzle? [closed]

I would like to upload an image to Mathematica and have the software place numbered points throughout the image so that it appears as a "dot-to-dot" image puzzle. I would also like to specify exactly ...
3
votes
2answers
107 views

Difference Colored legends from main plot

I am using the below code to create legends but I don't know why the colors in legends for various plots are different of devoted to main color of plots From http://reference.wolfram.com/language/ref/...
16
votes
5answers
798 views

Magnifying Glass on a Plot

Although there is a trick in TEX magnifying glass but I want to know is there any function to magnifying glass on a plot with Mathematica? For example for a function as ...
1
vote
1answer
123 views

Smooth Curve using Drawing Tools Palette

I am learning to use the drawing tools palette that comes packaged with Mathematica. I'm attempting to create some diagrams for class using Mathematica's drawing tools rather than Adobe. Is there ...
0
votes
1answer
76 views

Attaching labels to the vertices of an Octahedron

How do you attach the labels (e1,e2,e3,e4,e5,e6) to all 6 vertices of the Octahedron below, ensuring that the labels of the first figure corresponds to the end ...
1
vote
0answers
40 views

Plot3D PlotStyle V10.3 vs V7 [duplicate]

This is the from the the very good book of Hazrat He used Mathematica 7.0. In Mathematica 10.3 one gets ...
0
votes
1answer
79 views

Rotate the output of Plot3D [closed]

f[x_, y_] := Sin[x^2 + y^2] Exp[-x^2] + Cos[x^2 + y^2] g2 = Plot3D[f[x, y], {x, -2, 2}, {y, -2, 2}, PlotPoints -> 50, Axes -> False, Boxed -> False] ...
13
votes
1answer
312 views

Wiggly and imprecise animated gif output

Trying to make animated gif of zooming into famous Ford circles. With the code ...
3
votes
2answers
249 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
95 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
416 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
128 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
45 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
243 views

Combine multiple swatch legends

How can I combine multiple SwatchLegends? As a minimal example: ...
1
vote
1answer
113 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
100 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
118 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
64 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
117 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
102 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
131 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
25 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 ...
9
votes
4answers
335 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 $\gamma(t)=e^{it}+\frac{1}{2}e^{7it}+\...
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
111 views

Tell if a point is inside a FilledCurve

Convert a letter into a FilledCurve: ...
2
votes
1answer
71 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
77 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
64 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
152 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. ...
2
votes
5answers
199 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
441 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
223 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
274 views

Finding intersection points of two graphics

I am drawing a curve from a list using: ...
12
votes
2answers
265 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
124 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
115 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
136 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. ...