Best way to reproduce these graphics?

  • Context: Mathematica 
  • Thread starter Thread starter andresB
  • Start date Start date
  • Tags Tags
    Graphics
Click For Summary
SUMMARY

The discussion focuses on reproducing graphics with arrowheads in the middle of straight segments using TikZ, a powerful LaTeX package for creating graphics. Users are directed to specific resources, including the TikZ documentation on Wikibooks and example graphics from TeXample.net. A method is provided for drawing arrows set back from the endpoints of lines, utilizing the Graphics function in Mathematica. Adjustments to the arrow positioning may be necessary based on the specific application.

PREREQUISITES
  • Familiarity with LaTeX and TikZ package
  • Basic understanding of Mathematica syntax and functions
  • Knowledge of graphics rendering concepts
  • Experience with vector graphics and arrow placement
NEXT STEPS
  • Explore TikZ documentation on LaTeX for advanced graphic techniques
  • Learn about arrow customization in TikZ
  • Investigate Mathematica's Graphics function for complex visualizations
  • Review examples of vector graphics to understand line and arrow dynamics
USEFUL FOR

This discussion is beneficial for graphic designers, LaTeX users, and anyone involved in creating technical illustrations or visual representations in academic or professional settings.

andresB
Messages
625
Reaction score
374
I would like some advices to reproduce graphics like this. Particularly, I would like that each straight segment has an arrow in the middle.
244082
244083
 
Physics news on Phys.org
To put arrowheads within a line you might try drawing an arrow set back from the endpoints on top of the line. For example

Code:
ar[{p_,q_}]:=Arrow[{p,q},1/4 Norm[q-p]];
Graphics[{
ar[{{0,0},{2,0}}],ar[{{4/3,1},{1,1/8}}],ar[{{1/4,1/8},{1,1/2}}],
Line[{{0,0},{2,0},{2,1},{4/3,1},{1,1/8},{1/4,1/8},{1,1/2},{5/4,9/8},{2,9/8}}]
}]

Depending on how you use this you may have to adjust the amount the arrow is set back
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
5K