How do you make a self-aligning arrow with charts?

I would like to do something like this:

p = p2 (0,0)
shaft = arc xDir (-5/6 @@ turn)
example = ( arrowBetween' (with & arrowShaft .~ shaft) p p)

      

But of course I get the error: "Scale by zero! Halp!"

I understand why this doesn't work with the existing implementation arrowBetween'

, as it calls arrow'

which scales the shaft by the difference between the endpoints. However, this should be possible. It's not uncommon to see an arrow loop where it starts in charts.

+3
haskell haskell-diagrams


source to share


No one has answered this question yet

Check out similar questions:

277
What does the `forall` keyword do in Haskell / GHC?
261
How fundamentally are two-stroke and boom FRPs different?
five
Haskell Charts: How Can I Make Text Bigger?
five
Haskell diagrams with double lines
3
How to define a chart backend that combines multiple primitive backends
2
How to make a line thick with a circle?
2
How to combine "ringularWedge" and "wedge" with the Haskell diagram package?
1
Self-referential definition doesn't work in Haskell
1
How do I install charts?
0
How to hide DOCTYPE declaration for svg files generated by diagrams?



All Articles
Loading...
X
Show
Funny
Dev
Pics