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

1
vote
0answers
14 views

How to implement reusable graphic components having stable line thicknesses?

IMPORTANT: This post is a follow-up to Scaling edge thicknesses, and in particular to the accepted answer in that thread. Basically, I'm trying to use the idea given in that answer to implement ...
1
vote
2answers
106 views

How to do a parametric histogram?

Is it possible to draw a spectral histogram from two random sets ? More specifically, I have these two random functions (fmin, ...
6
votes
1answer
132 views

Is it possible to get the (x, y) position of nodes in a `Graph`?

Given a graph... RandomGraph[{20,40}] ...is it possible to retrieve the (x, y) coordinates at which the nodes are drawn? ...
1
vote
2answers
51 views

Recreating a ContourPlot3D using points

Let's define a three-dimensional surface ...
5
votes
0answers
74 views

Trouble exporting graphics to SVG (or PNG)

I'm trying to export a Graphics object to SVG (or, failing that, PNG). The graphic is a chart of ~1000 simple geometric "configurations"; below is a small excerpt ...
1
vote
1answer
38 views

Cartesian coordinates inside Spherical function

I would like to write a function that draws a graphic object and its projections along the x,y and z axes. I specify the $r,\theta, \phi$ of the object and an arrow and it's dashed projections are ...
2
votes
0answers
72 views

Mathematica gravatar engine?

This question asks about making gravatars in Mathematica, but the accepted answer is just a wrapper around the gravatar.com service. Is there an open source Mathematica engine that performs the ...
1
vote
1answer
28 views

List of Inequalities in RegionPlot with different colors

Starting from the example of the Documentation: RegionPlot[{x^2 < y^3 + 1, y^2 < x^3 + 1}, {x, -2, 5}, {y, -2, 5}] Which gives a nice plot with two ...
1
vote
1answer
68 views

Plotting a convex hull with a coordinate mesh

I am plotting the convex hull of some curves by extracting the curves from a contour plot and constructing the convex hull around their discretized version . It's not terribly accurate for ...
6
votes
3answers
420 views

Partition a disk into regions based on points on a circle

I am plotting the roots of a polynomial on the unite circle this way ...
2
votes
2answers
58 views
0
votes
0answers
26 views

Extension of the question “Manipulate Slider Value on the Plot”

In the Stack exchange question Manipulate Slider Value on the Plot, the task was to display the value of a parameter. Here was Hector's answer ...
3
votes
1answer
43 views

Change of parameters on ouput graph

I have generated the graph, but i lost the settings, i would like to make the Plotmarkers slightly bigger. Is there anything to do this without redoing the computation? Like ...
0
votes
2answers
100 views

determine frequencies [on hold]

Is it possible to determine all the frequencies , or all periods of graphic ? Example graphic :
2
votes
1answer
198 views

Make a fractal-like dot animation

How to make an animation of following fractal-like gif by using Mathematica?
1
vote
0answers
35 views

Periodic boundary condition trick

I'm plotting a curve on a compact space which is having periodic boundaries on the left and right parts. Currently, the code I'm using is working great, but I'm wondering if there's a simpler and ...
1
vote
1answer
81 views

Drawing spheres with texts on top of each other without overlapping [on hold]

I want to use Graphics3D to draw a sphere with a text on it. Then, I'd like to draw another sphere (with a different text on it) on top of the first one. This is the code I'm using ...
7
votes
0answers
137 views

How to define a custom 2/3D graphic primitive like built-in?

There are lots of basic graphic-pimitive in Mathematica, such as 2D- pimitive: Line[], Circle[], Disk[] and 3D-pimitive: ...
2
votes
1answer
46 views

Small glitch with EdgeForm and PlotRange

I'm experiencing a small problem with the edges of a square, if the PlotRange has the same size as the square : ...
3
votes
1answer
130 views

How to guarantee the point's position is fixed in the Graphics and Image

SeedRandom[8] plot = ParametricPlot[ Evaluate@BezierFunction[temPoint = RandomReal[{-50, 50}, {5, 2}]][ t], {t, 0, 1}, AxesOrigin -> {0, 0}] We can ...
11
votes
3answers
735 views

How to visualize the interior of a complicated 3D plot

I have an external data file (can be downloaded here: link 1 or link 2) which contains a dense grid of initial condition in the (x,y,z) space. I read it with Mathematica and plot these initial ...
2
votes
2answers
80 views
3
votes
2answers
110 views

Density Plot: Colour Corresponding to Different Parts of a Function

I am trying to create a DensityPlot of a symmetric function f(r)=f(x,y) that is composed of 2 other functions: f(r)= g(r) + h(r) f(x,y)=g(x,y)+h(x,y). I can plot f(x,y) fine (can always convert ...
1
vote
2answers
67 views

How can I plot two concentric circles with a polygon inscribed in one and circumscribed about the other

So I am new to Mathematica still learning basic codes.. However I need help to become quicker in my research. Can anyone help me with the simplicit code to plot 2 concentric circles and a polygon of ...
0
votes
0answers
38 views

Intel Graphics Driver Crash and Recovery messages with 3D graphics?

Ever since i updated to Mathematica 10.4 from 10.2, I have been occasionally experiencing a graphics crash error message and 3D images/graphics that used to appear normally just turn black upon ...
1
vote
5answers
509 views

Label each panel of Grid

I have a set of figures that I would like to show as grid for a publication. I currently just export the figure as an eps and use another software package to add Labels (A,B,C,D) to each panel of the ...
0
votes
1answer
78 views

Visualize a pretzel using a closed cubic B-spline and Tube [closed]

I want to visualize a 3D nonplanar pretzel using a closed cubic B-spline displayed with Tube. I'm just absolutely lost on the whole thing. The closest pretzel ...
2
votes
2answers
63 views

How to set global style of controls in Manipulate?

I created a Manipulate code which is using several sliders, with the same font output (style, size, font familly, ...). How can I save some space by defining a global style for all the slider ...
3
votes
1answer
62 views

Exporting sharp corners in Bézier curves to pdf

I'm a bit baffled by this. I have a number of arrows in a series of diagrams, and I'm defining the arrowheads using Bézier curves such as ...
2
votes
3answers
107 views

Strong glitch with Evaluate in Manipulate

I'm experiencing a strong evaluation problem for a Manipulate box and I can't find the best solution yet. Here's a MWE to show the glitch : ...
3
votes
2answers
88 views

How to remove parts of a curve?

I have a curve that have some unwanted parts. How can I remove them ? Or how to constraint the curve to a specific region ? Here's a MWE that shows the problem : ...
3
votes
1answer
102 views

Drawing dynamical trajectories diagram in Mathematica

I've a Boolean gene regulation system composed of vectors(corresponding to cellular phenotypes). Their components are binary numbers such as $\{1,0,0,1\}$. A vector can change its statement in ...
3
votes
1answer
66 views

Frame labels without a frame?

Is there a way to add labels to a 2D plot, without the Frame ? Here's a MWE which shows a simple graph with four labels around its frame. I need to remove the frame, but keep the labels. Is that ...
1
vote
2answers
50 views

Colour bar for contour 2D graph [duplicate]

How could I plot the colour legend for my 2D contour graph ...
23
votes
5answers
4k views

Make a beautiful Moiré effect

How do I make the following Moiré pattern? I tried: ...
1
vote
2answers
97 views

Tabular designs from modular arithmetic operations

I managed to make a mod4 addition table. Grid[Table[Mod[i + j, 4], {i, 0, 3}, {j, 0, 3}]] What I'd like to do is draw a grid of 16 small blocks, 4 rows, 4 ...
9
votes
3answers
294 views

Problem with CurrentValue[“MouseOver”] when graphics are wrapped with Deploy

Bug reproduced in V9.0.1 and persisting through V10.4.1 Please take a look at following toy example: ...
6
votes
1answer
275 views

Why does Arrow not work well with Scaled coordinates in 3D?

Bug introduced in 8.0 and fixed in 10.4 or earlier. I am a little puzzled by the fact that if I try to use Arrow with Scaled ...
6
votes
3answers
203 views
3
votes
1answer
158 views

How to set the Arrowheads style in a figure with broken vertical axes

I am trying to combine three separated curves into a same figure. The codes are inspired by another post and answers here. Codes: ...
28
votes
1answer
336 views

How to speed up TextJustification in Mathematica 10

Based on this question: - Version 7 print environment - I set up two 10 page test documents in version 7.0.1 and version 10.1. The version 7 document exported to PDF in 4.18 seconds whereas the ...
5
votes
1answer
93 views

How to export a 3D circle as a single piece PDF vectorial object?

I need to export a circle drawn in 3D with a specific point of view to a PDF file. This is easy to do. However, the exported circle is made of tons of non-connected small bits. I need the whole ...
41
votes
2answers
3k views

How to make this beautiful animation

How to make an animation of following gif in Mathematica? Edit: The animation shown above was created by Charlie Deck in processing. And how to make 3D analog? I tried first few steps ...
4
votes
2answers
115 views

How can I create a graphic of a wedge of a cylinder (like a slice of pie)?

http://demonstrations.wolfram.com/HoleInACylinder/ This demonstration uses Graphics3D and is able to generate what I want, but I cant figure out how to separate ...
0
votes
1answer
26 views

NDSolve point animation not working [closed]

The below code plots the path of a ball bouncing but loses 90% of its velocity each time it bounces. (adapted from https://reference.wolfram.com/language/ref/WhenEvent.html). ...
9
votes
4answers
461 views

Labeling triangle edges in Mathematica 10

Mathematica 10 introduced lots of new geometry related functions, and one of these is SSSTriangle which creates a triangle graphic given the three side lengths. Is it possible however to label the ...
4
votes
2answers
196 views

How can I visualize a map $f:T^2\to T^2$?

Let $T^2\cong S^1\times S^1$ be the one-holed torus surface (say, embedded in $\mathbb{R}^3$) and say I have a simple-ish map $f:T^2\to T^2$ which I'd like to visualize. How might I do that? To make ...
1
vote
1answer
71 views

Color of figure keeps changing

I'm not sure this should be posted here, but I don't know where else to ask this question. Please feel free to refer to another more relevant SE if necessary. I plotted a figure with Mathematica, and ...
0
votes
1answer
61 views

Dynamically update three graphics simultaneously

I have a problem. How can I get three arrows in to update simultaneously? All work, but one by one. ...
5
votes
0answers
89 views

Generating G-code from Mathematica

Has anybody generated G-code (used for controlling milling machines and plotters and other hardware) in Mathematica? High quality inexpensive plotters have reached the market and I would like to drive ...