23
votes
Accepted
Making a graph or network interactively over an image
There are many ways to do this, modifying, improving my method or doing a completely different thing. My goal here is to show a very basic idea that should give you a start. ...
21
votes
Accepted
18
votes
Accepted
Art on Mathematica: How can I export 4K resolution png images?
There are a couple ways to do this! One is with ImageSize, and one is with RasterSize (probably recommended), and they have ...
15
votes
Accepted
Writing code for a diagram
Use MaTeX?
MaTeX["\\feynmandiagram[horizontal=a to b] {i1--[anti fermion]
a--[anti fermion] i2,a--[photon] b};", Magnification -> 2]
Note that this ...
13
votes
Accepted
Is there a way to "freehand draw" in Mathematica, and pick up the plotted data in real time?
Edit: I made the size of the graphic generalised so you can have any size of canvas and any thickness of line
As Szabolcs said in a comment, there is an example of that in the documentation. Hating ...
13
votes
Accepted
How can I draw this image and if you can make it rotate horizontally and vertically?
This is the process of reconstructing the polyhedron Icosahedron.
...
11
votes
Accepted
How can I draw a ruler?
Something to point you in a possible direction...
Updated a second time with some modifications from the original.
(I clearly have too much time on my hands today and I fully recognize the silliness ...
11
votes
10
votes
Accepted
Drawing hollow disks in 3D with an sphere in center and small spheres on the rings
Bells and whistles. Doesn't replicate the crossings of the orbits in the artwork, but it's more consistent. Colors and lighting are a bit hard to get right.
...
10
votes
Writing code for a diagram
The arrows can be drawn using "Arrow" and for the wiggly line we use a Bezier curve.
For the Bezier curve some control points are needed. We choose control points at a distance of +/-0.5 ...
10
votes
9
votes
Drawing hollow disks in 3D with an sphere in center and small spheres on the rings
One of many ways to get 3D hollow disks is to use Annulus[] to specify the region in Plot3D:
...
8
votes
Accepted
Can Mathematica create a sheet of virtual graph paper on which user can draw lines with the mouse?
Have you seen the basic drawing tools? e.g. starting from
...
8
votes
Accepted
7
votes
Draw number spirals
A more concise version:
n=5;
pts=ReIm@FoldList[Plus,0,I^-Floor[Sqrt[4Range[n^2-1]-3]-1]];
Graphics[{Line@pts,Point@pts,MapIndexed[Text[Tr@#2,#+{.1,.1}]&,pts]}]
...
6
votes
Accepted
6
votes
6
votes
Drawing hollow disks in 3D with an sphere in center and small spheres on the rings
Second thoughts (borrowing some code from How to draw a circle in 3d on a sphere):
...
6
votes
Accepted
What is the purpose of StrokeForm?
Answering the question myself, I would say that StrokeForm is one of specialized compound-type graphics directives: EdgeForm, <...
6
votes
How can I draw this image and if you can make it rotate horizontally and vertically?
Building on cvgmt's answer
...
5
votes
Accepted
Is it possible to draw a hollow circle using polygon?
Polygon is always filled (it can be filled with white). Use Circle for a "hollow" circle.
...
5
votes
Accepted
How to draw a shaded elipse using drawing tools?
I'll build on David's answer (if you vote for this one, please also vote for his), since it's been a while since anyone demonstrated the excellent shadow` package on this site.
We start by defining ...
5
votes
Accepted
How to draw the outline of an icon made of several polygons?
With Mathematica 12 a possible approach is OuterPolygon:
...
5
votes
Draw half arrow
This looks like the unicode character "rightwards harpoon over leftwards harpoon", with code U+21cc. It can be found here. We might use it in Mathematica like this:
...
5
votes
Art on mathematica with filled circles and straight paths: how can I reproduce minimalist suns?
Something like:
...
5
votes
Draw number spirals
We can define the spiral matrices recursively, by observing when n is odd we add a column to the left of the n-1 matrix, and a ...
5
votes
Accepted
4
votes
How to author a workflow?
Update: Using annotationArrow with LocatorPane to have multiple annotation arrows (use ALT+Click to create new locators or to ...
4
votes
Accepted
How to draw different colors on a 2D plot with color depending on xy coordinates?
OK, I've managed to fix both performance and jaggedness problems. For this, I just had to use DiscretizeRegion combined with ...
4
votes
Accepted
Draw: vector drawing & technical illustration application
I just downloaded and tried it. I think this is what one is supposed to do: 1. After you make the drawing first time, like this:
then save the notebook. But the notebook is not not meant to be the ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
drawing × 66graphics × 27
plotting × 22
graphs-and-networks × 6
graphics3d × 5
manipulate × 3
polygons × 3
list-manipulation × 2
functions × 2
syntax × 2
mesh × 2
animation × 2
computational-geometry × 2
visualization × 2
code-request × 2
grid-layouts × 2
undocumented × 2
generative-art × 2
design-patterns × 2
equation-solving × 1
front-end × 1
probability-or-statistics × 1
image-processing × 1
programming × 1
dynamic × 1