Skip to main content

Questions tagged [drawing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
18 votes
1 answer
688 views

Making a graph or network interactively over an image

Given an image, is it possible to manually draw a graph over it? For example, taking the following image: I want to manually pick the vertices and draw the edges in a "Paint-like" manner to get, for ...
sam wolfe's user avatar
  • 4,863
12 votes
1 answer
808 views

Art on Mathematica: How can I export 4K resolution png images?

This question is solely based upon $[1]$ and therefore, the reading of $[1]$ could be interesting. How can I export the image created, by the code in the following, with high definition, beautiful, 4K ...
M.N.Raia's user avatar
  • 503
10 votes
2 answers
902 views

Art on mathematica with filled circles and straight paths: how can I reproduce minimalist suns?

I would like to know: how can I construct minimalist images like this one?
M.N.Raia's user avatar
  • 503
9 votes
1 answer
613 views

Is there a way to "freehand draw" in Mathematica, and pick up the plotted data in real time?

What I want is to be able to draw some drawing with a simple pen tool (as with the Freehand Line from the Drawing Tools of Mathematica), while a script runs every time something is added to the ...
BodyDouble's user avatar
9 votes
1 answer
852 views

Can not edit font on drawing tool

I am simply trying to add some text to a plot via the drawing tool, but it seems the text style options are fixed at some default setting and will not change. You can see in the following picture that ...
Arturo don Juan's user avatar
8 votes
3 answers
2k views

Draw half arrow

I would like to draw in Mathematica two half arrows next to each other. Something like this: Here is my attempt: ...
Moonwalk's user avatar
  • 641
7 votes
4 answers
880 views

Drawing hollow disks in 3D with an sphere in center and small spheres on the rings

I was trying to draw the following logo of an atom using Mathematica, but I could only figure out how to draw intersecting ellipses, not a nice logo like below. Do you have any idea? And is ...
Saeid 's user avatar
  • 801
6 votes
3 answers
879 views

How can I draw this image and if you can make it rotate horizontally and vertically?

I've been looking at the site, but it doesn't occur to me there was a method to obtain the coordinates of the image, but I can't find it. Could you give me a hand? It's for a poster of the ...
Pamela's user avatar
  • 309
6 votes
1 answer
513 views

Can Mathematica create a sheet of virtual graph paper on which user can draw lines with the mouse?

Can Mathematica produce a sheet of virtual graph paper on which user can draw points and lines using the mouse? Some background for this question: I am taking a course at Coursera and the professors ...
Ronnie's user avatar
  • 295
6 votes
1 answer
508 views

Grid snap for drawing tools

Is it possible to extend the Drawing Tools palette and add a grid snap feature? Drawing points with discrete intervals would make it a lot easier to draw nice free body diagrams, and other simple ...
joojaa's user avatar
  • 780
6 votes
1 answer
153 views

What is the purpose of StrokeForm?

Symbol System`StrokeForm is present already in Mathematica version 8 (but not in version 5.2). Currently, it is used in built-in themes, for example: ...
Alexey Popkov's user avatar
5 votes
2 answers
487 views

How to draw the outline of an icon made of several polygons?

I have an icon defined like that: speakerIcon = Graphics[{ Triangle[{{0, -1}, {1,1},{-1,1}}], Rectangle[{-1, -1},{1, 0}] }, ImageSize->20] I can ...
Sylvain Leroux's user avatar
5 votes
3 answers
575 views

Drawing two graphics with an arrow in between

I'm trying to draw two graphics object well defined and an arrow in between pointing left to right (symbolizing the mapping between the two). I've tried drawing the arrow first in a graphics object ...
Learning is a mess's user avatar
5 votes
1 answer
204 views

How to author a workflow?

I find the workflow refpages in the doc center very helpful, and I'd like to make some of my own: Workflows seem to be notebooks of "Text" and ...
M.R.'s user avatar
  • 31.5k
4 votes
3 answers
904 views

Writing code for a diagram

Could anyone please help in writing the code for the following diagram in Mathematica? Note: I want a simple code in Mathematica without using an external package.
SciJewel's user avatar
  • 452
4 votes
1 answer
309 views

How can I draw a ruler?

I would like to draw a ruler in the vertical position. Ideally, the numbers are horizontal and I can choose begin, end and steps (eg from 1000 to 1200 with steps of 10).
Luigi's user avatar
  • 1,301
4 votes
2 answers
324 views

How to draw a parenthesis-like shape?

Can't quite figure out how to draw the shape below with Lines and make them play nice at the vertices where they meet. I currently have three lines of different thicknesses, but it's clearly not ...
Wynne's user avatar
  • 1,526
4 votes
5 answers
298 views

Generate code from figure modification obtained through Drawing tools

Sometimes it is useful to use the Drawing tools palette for adding a label, line or arrow to a graph. Unfortunately when remaking the plot the modifications are not present. Is there a way to ...
Nisba's user avatar
  • 263
4 votes
1 answer
2k views

Draw grid with points

How would I draw a grid with dots on specified intersections? The image below shows the basic idea: If I wanted to label the grid lines with index numbers or letters, how would I do that?
Tyler Durden's user avatar
  • 4,102
4 votes
1 answer
397 views

Draw: vector drawing & technical illustration application

I found this very sophisticated Draw application created entirely with the Wolfram Language: https://github.com/shdlbwr/draw The documentation is available here: http://community.wolfram.com/groups/...
mrz's user avatar
  • 11.7k
4 votes
2 answers
158 views

Trouble aligning Graphics with Image

I import the test image eloquently named "Tank2": img = ExampleData[{"TestImage", "Tank2"}] And do an extremly poor corner detection: ...
Skurmedel's user avatar
  • 143
4 votes
0 answers
76 views

Drawing tools eyedropper crashes Mathematica 12.1 with MengerMesh

Mathematica 12.1.1 under macOS Catalina 10.15.7. In a new notebook, evaluate: MengerMesh[0, 3] Click once on the output's graphic image, which causes the bounding ...
murray's user avatar
  • 11.9k
4 votes
1 answer
531 views

Drawing Tools - Get Coordinates: drag doesn't work

My Mathematica version is 10.3. When I drag with Get Coordinates function under the Drawing Tools it does not work. For example, I cannot mark a set of points along the path and cannot use alt-drag/...
Rikeijin's user avatar
  • 179
3 votes
1 answer
264 views

How to draw different colors on a 2D plot with color depending on xy coordinates?

I'm making a composite 2D plot, combining different types of plots (Graphics, ListPlot etc.) with ...
Ruslan's user avatar
  • 7,172
3 votes
1 answer
1k 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 ...
B flat's user avatar
  • 5,565
3 votes
1 answer
1k views

Discrete plots instead of parametric plots

I have a big iteration process and I want to look at the trajectories. Although if I consider ParametricPlot for this process, Mathematica connects points with lines. And for ...
Olga's user avatar
  • 203
3 votes
1 answer
64 views

How do I invoke the freehand line tool (f key) programmatically in an attached cell containing a canvas?

I created the following code that overlays an attached cell containing a large canvas on top of a notebook. This allows me to use the drawing tools on top of my notebook so that I can annotate code ...
B flat's user avatar
  • 5,565
3 votes
1 answer
717 views

How to save a graph drawn with the drawing tool?

How do I save a graph that has been drawn with the drawing tool? As you can see from my screenshot, all the save buttons are disabled.
bios's user avatar
  • 401
3 votes
0 answers
855 views

Best way to draw personalized bloch sphere on mathematica

I would like, for presentation purpose, to be able to draw sphere with vectors inside (basically I need to work with Bloch spheres). For example this kind of results : I need to be able to add ...
StarBucK's user avatar
  • 2,164
2 votes
3 answers
1k views

Is it possible to draw a hollow circle using polygon?

The question is simple. I have the following commands ...
KratosMath's user avatar
  • 1,287
2 votes
2 answers
303 views

How to draw a shaded elipse using drawing tools?

I'm trying to draw the following picture using drawing tools, but I could get just the arrows and points. As you can imagine, I'm a begginer at mathematica, but I use LaTeX. I'd like to know if there ...
geekformoney's user avatar
2 votes
2 answers
192 views

Extract data coordinates from a line list plot

I used the below simple data (including 10 x-y data) and function ListLinePlot to draw a figure. The figure is this: Now I want to export a data x-y coordinates list which includes 100 x-y data at ...
Mr.2023's user avatar
  • 189
2 votes
2 answers
203 views

Drawing two figures with directed lines specified by arrows

Can someone please help me to draw the attached figure in Mathematica?
Ijuptilk's user avatar
2 votes
2 answers
124 views

Mapping picture, rotate

I'm trying to do this. it doesn't have to be the same.
D.T.'s user avatar
  • 87
2 votes
1 answer
100 views

Table of surface Parametric draw

I'm trying to reproduce this kind of graph for a spherical cap, with different span ratios. I tried with this: ...
Matteo Lai's user avatar
2 votes
1 answer
68 views

How to find the number of cells that one point can be in?

I draw the attached plot drawn with the following code. Each color represents a cell. How can I find the average number of cells that one user (any point within the square) can be in? By average I ...
MGK's user avatar
  • 565
2 votes
1 answer
242 views

Accessing Draw Tools objects with notebook commands

In a notebook I would like to be able to access and modify the properties of draw tools objects after I've drawn them on a graph by hand. For example, if make a plot and, with draw tools, make a ...
tdgutierrez's user avatar
2 votes
0 answers
200 views

How to create a graph in Mathematica with a specific style similar to the official documentation?

(Edited) I am trying to create some 3D objects in Mathematica that have a similar style to the ones in the official documentation. For example: Below are some graphs on the "Physically Based ...
Frei Zhang's user avatar
2 votes
0 answers
70 views

PolygonCoordinates extract the submits in the "wrong" order

I don't understand why, in the example below, PolygonCoordinates seems unable to correctly extract the summits of a rectangle in the "right" order so we can ...
Sylvain Leroux's user avatar
2 votes
0 answers
219 views

Buttons in graphics [closed]

I've created a workflow using Drawing Tools. It consists of Images, lines, and in some places I have cut and pasted Button objects. These buttons work fine if you paste directly into the Graphic frame....
Robert's user avatar
  • 435
1 vote
1 answer
429 views

Drawing an arrow and manipulating it in a diagram

I want to draw an arrow in a diagram which starts from a point, say, $(x,\,\sqrt{x^2+2})$ and ends up at a point, say, $(x',\,\sin{x^2})$. I want to manipulate or animate such an arrow. For example, ...
Immanuel's user avatar
  • 113
1 vote
3 answers
187 views

Lattices drawings

I want to generate an image in order to explain a construction. The construction is the following. Start from a finite-sized 2D square lattice, create 3 copies of the starting lattice and place them ...
Ruth Murphy's user avatar
1 vote
1 answer
202 views

Add a point at the x intercept

I am trying to add a point in a plot where the curve intercepts the x axis i.e. f[x] = 0 I tried doing an epilog inside an if statement in Plot[] , and it didn't work. here is my code so far ...
user49027's user avatar
1 vote
1 answer
102 views

Narrow a Drawing Tools Window

I used the Graphics->New Graphic, then the Drawing Tools to create this in my notebook. Now, you can see that there is ...
David's user avatar
  • 14.9k
1 vote
1 answer
71 views

Additive graphs code

For $n\geq 1$ the fibonacci sum graph on the set $[n]=\{1,2,\ldots,n\}$ denoted by $G_n$, is the graph with vertex set $[n]$ and edge set $\{uv, u+v=F_i, \text{for some}\quad i\}$. I wrote the ...
d.y's user avatar
  • 143
1 vote
1 answer
97 views

How can I put a sign for "angle alpha 40°" into a Graphics[Triangle ..]] like in Mathworld "Triangle"?

How can one place the description/symbol "Alpha 40°" into the corner of a triangle drawn by Graphics/Triangle as it can be seen in the texts and drawings of Mathworld for example like one can see if ...
HeiMi's user avatar
  • 11
1 vote
0 answers
186 views

FeynArts is not plotting Propagator labels/fields

I am trying to use FeynArts to generate two feynman diagrams (one for electron scattering, and one for higgs->bb w/ VGF). On the first I can't seem to figure out how to get labels or arrows, not get ...
Silas K Grossberndt's user avatar
1 vote
0 answers
146 views

In a tool for a programmatic drawing let us capture a locator position into a clipboard [closed]

This code allows one to fast draw a technical sketch. I simplified it to extreme. It contains a disk (instead of your real sketch) and a line pointing to a place in the sketch, which you want to ...
Alexei Boulbitch's user avatar
1 vote
0 answers
112 views

Update plot legend after using drawing tools [closed]

After manually editing a plot by changing the colours and filling of the curves using the drawing tools, is there any way to update the legend, so that it corresponds with the new colours?
Joan's user avatar
  • 11
0 votes
2 answers
607 views

Drawing nodal lines of wave equation

I am new to Mathematica and I want to produce the following figure wich represents the nodal lines of wave equation. Can anyone help?
user156720's user avatar