Questions tagged [arrows]

Arrows are a means of modeling computational effects that are more general and less powerful than Monads.

Filter by
Sorted by
Tagged with
0 votes
3 answers
75 views

Is there a way to specify y-axis marks on a matplotlib.pyplot plot?

I need to plot a distribution function using python. I have drawn some arrows (red on black below), but I don’t know how to create those horizontal dashed lines representing the needed values of a ...
Alena's user avatar
  • 15
1 vote
1 answer
70 views

How do I define an Arrow instance for a Haskell binary tree GADT?

I'm trying to use arrows to manipulate a generic binary tree in Haskell, and I'm running into issues actually instantiating the Arrow class. I think my issues are due to incompatible type signatures ...
OCDkirby's user avatar
  • 300
-1 votes
1 answer
43 views

quiver plot does not adjust to arrow extent

As visible for example here: How to turn off matplotlib quiver scaling? when using matplotlib.pyplots's quiver to draw arrows, the arrows often point out of the image. It seems like the plot adjusts ...
dasWesen's user avatar
  • 597
0 votes
0 answers
11 views

arrows in ternary plot using quiver

I want to create a flow diagram and I am using quiver. The plot I get cuts the arrows and the points I draw in the arises. I need those features to be seen, how could I do to get that fixed? I ...
Lucia Ramirez's user avatar
0 votes
0 answers
34 views

How to plot wind direction with predicted data from kriging?

I used kriging to predict wind direction data, in degrees, from satellite information extracted at the location of monitoring stations. This is how I created my prediction object: (a) Creating my ...
Miguel Angel Gonzalez Cueva's user avatar
2 votes
1 answer
101 views

Is State an arrow?

Everyone knows State is a monad: import Control.Monad newtype State s a = State {runState :: s -> (a, s)} instance Functor (State s) where fmap = liftM instance Applicative (State s) where ...
Dannyu NDos's user avatar
  • 2,478
2 votes
1 answer
40 views

How do I adjust my CSS to ensure the arrow is displayed in the same layer as the popup container?

I try to make the popup container like this example But it show like this wrong layer or something Here is my code: HTML: <div class="popup-container arrow-top "> CSS: .popup-...
Minh Tran's user avatar
-1 votes
1 answer
85 views

Kotlin Arrow make piece of code functional

I am having trouble refactoring this function here. How can I make it functional, in a way that instead of nested when-is you have sequential mappings/aggregations of LEFT=ErrorCodes? And if I wanted ...
Phil's user avatar
  • 7,132
1 vote
1 answer
149 views

Does Yampa have support for memoizing signal functions?

I have written a basic signal function in Yampa as follows: sf :: SF Int Int sf = arr $ \x -> trace "1 * 2 = 2" (x * 2) This function doubles its input and prints "1 * 2 = 2" ...
12412316's user avatar
  • 747
4 votes
1 answer
137 views

Does this monadic parser cause space leaks?

I was reading the arrow tutorial. https://en.wikibooks.org/wiki/Haskell/Understanding_arrows#Avoiding_leaks. And I got confused reading this part solfege :: Parser Char String solfege = string "...
12412316's user avatar
  • 747
0 votes
0 answers
89 views

React slick transparent border over (custom) arrows

I am trying to create a transparent border over the Arrow for examplelike is on Disney+ like when you hover even where is the image not located, the image will show. my CSS: .slick-prev:before{ ...
BLENTIX's user avatar
1 vote
3 answers
168 views

How to create hypertext arrows in gnuplot?

How can I create hypertext-like vectors or arrows that only appear when the user places the mouse on or near the start/end points? For points it looks like this: indices = "first second" ...
magfan's user avatar
  • 191
2 votes
2 answers
128 views

How to connect points with different indices (one data file) in gnuplot

I have a file "a_test.dat" with two data blocks that I can select via the corresponding index. # first x1 y1 3 1 6 2 9 8 # second x2 y2 4 5 8 2 2 7 Now I want to connect the ...
magfan's user avatar
  • 191
1 vote
1 answer
99 views

How do I avoid plotting the arrows in the aesthetic legends of the edges using ggraph in R?

I am trying to do a network flow graph using the ggraph in R. However, I am having several problems while plotting the legend of the different aesthetics of geom_edge_fan. My graph is as follows:  ...
Hasnain Shafqat's user avatar
0 votes
1 answer
33 views

My x axis is date, how do I draw vertical arrows pointing to specific dates?

I have created a data frame ('precip2') with 'Date' and precipitaion ('sum_precip'). I have created a bar chart in ggplot which shows precipitation on particular dates. I want to now draw vertical ...
Charlie Morten's user avatar
0 votes
0 answers
137 views

Draw arrow from Open cv dense optical Flow data C#

I want to draw arrows on my image from a dense Optical Flow data. I use OpenCVSharp. public Mat GetDense(Mat nextFrameGray, Mat nextFrameColor, Mat lastgrayFrame) { Mat flow = new(...
Romain Tbs's user avatar
0 votes
1 answer
300 views

QSpinBox Arrow Display Issue when using a Stylesheet

Qt 5.12 desktop widgets. Trying to style a spinbox to match our application's existing colors and the up/down arrow images disappear from the associated buttons. QSpinBox { background: #474747; ...
Keith Bourdon's user avatar
1 vote
0 answers
72 views

igraph style arrow for ggplot axis and segment

Is it possible to use Arrows header style in igraph package for ggplot segments and axis lines? There are some options in grid, but these options do not yield the arrows in igraph. library(igraph) ...
mert's user avatar
  • 371
0 votes
0 answers
29 views

Can I "turn off" arrows where the value is 0 in vectorplot? (no currents on land)

I am trying to make a map of Guam's current field using vectorplot in the rasterVis package. When I read in my original data where the currents on "land" were NA, I got errors so I am ...
Heidi's user avatar
  • 11
0 votes
1 answer
698 views

PlantUML Activity diagram special Box Layout Output is needed

I have a problem and tried to solve it for the last 2 Days. I want to design an activity diagram/flow chart like this: Step1 Step2 Step3 --------->Output of Step 3 Step4 I can't draw/program an ...
GM1's user avatar
  • 3
1 vote
0 answers
54 views

matlab quiver: arrows stuck on one side of the plot

I am trying to plot some arrows with quiver on matlab to represent the flow over a contour but when I run this code, the arrows are only drawn over the left part of the contour, would anyone have an ...
aurore's user avatar
  • 11
1 vote
2 answers
659 views

Plotting arrows in ggplot2 for pca

I want to plot arrows in a pca. I can do that with nmds. But for unknown reasons I cannot do it with the pca. First I tried this: library(AMR) ggplot_pca(pca_resources) The plot is nice but I want ...
Nadiine El Nino's user avatar
0 votes
1 answer
601 views

missing path in shopware svg icon

normally in sw6 the slider element arrows look like the example below. <span class="icon icon-arrow-head-right"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="...
Marc Cheng's user avatar
1 vote
1 answer
125 views

Double Arrows in igraph and legible lettering

#Dataframe Netzwerkgraph <- graph.data.frame(Datensatz[,1:3], directed = TRUE) #vectors actors<-Datensatz$Von relations<-Datensatz$Nach weight<-Datensatz$Nachrichten plot(Netzwerkgraph,...
Sabrina S.'s user avatar
0 votes
1 answer
435 views

MyPy complains about datetime difference

MyPy complains about the line of code where bar is assigned the difference of two datetimes. The type of foo is datetime.timedelta. The error message from MyPy is "int not callable". What am ...
Hui's user avatar
  • 97
1 vote
1 answer
98 views

Reduce the number of arrows in geom_segment R

I am trying to plot a figure that shows the relationship between x and y as well as the direction of the curve. The following are sample data saved as data.csv: date,x,y 2000-01-01,0.373,0 2000-01-02,...
Mohamed Ismaiel Ahmed's user avatar
1 vote
1 answer
104 views

Highmaps Flight Routes add arrows

I'm using Highmaps and new topojson file to create a map with visualization of flight routes. It's working well, see demo here : https://jsfiddle.net/vegaelce/L2ogczjh/ Now I need to add arrows on the ...
vegaelce's user avatar
  • 117
0 votes
0 answers
773 views

JavaScript: problem with swiper-button-prev

I have a problem with arrows on the slider on the website that I've published a few days ago. A link to a website is https://blackfox.ai/. The problem is that the left arrow (swiper-button-prev) does ...
Filip Ćurić's user avatar
0 votes
1 answer
440 views

How to draw sphere with arrow pointing from sphere in matplotlib

I try to draw a sphere to represent a qubit using matplotlib import numpy as np import matplotlib.pyplot as plt theta = [0, np.pi] phi = [0, 2* np.pi] N=100 theta_array = np.linspace(theta[0], theta[...
Nguyen Viet's user avatar
0 votes
1 answer
1k views

Drawing an arrow with rotation just using coordinates of edges in python

I tried to draw an arrow between to coordinates but couldn't succeed.Let's say i got two points.Like coord1=(34,56) and coord2=(83,51) i need to draw an arrow between coord1 to coord2 but arrow must ...
özgür Sanli's user avatar
0 votes
1 answer
792 views

Choosing in menu wirh arrows on keyboard (C#)

I am trying to make a simple menu where I can choose with the arrows on the keyboard. I can run the code and the program doesn't give any errors, however I can not choose with the arrows and nothing ...
JohannaH's user avatar
1 vote
1 answer
96 views

what is the arrow doing in this function?

This homework has to do with mupl (a Made Up Programming Language). mupl programs are written directly in Racket by using the constructors defined by the structs here: (provide (all-defined-out)) ;; ...
Amen's user avatar
  • 47
-1 votes
1 answer
790 views

react js Array.prototype.filter() expects a value to be returned at the end of arrow function

Array.prototype.filter() expects a value to be returned at the end of arrow function .I am getting this error {product .filter((item) => { if (search.toString()....
madhu's user avatar
  • 1
1 vote
1 answer
1k views

Add arrow to plot

I want to add some arrows (direction) to my plot like this picture: I used Arrowhead and arrowPlot but I have some errors. a1 = 1.05; b = 0.29; c = 0.3; d= 0.31; L1= 0.002; L2= 0.008; L3=0.0075; ...
MathMath's user avatar
5 votes
1 answer
326 views

John Hughes' Deterministic LL(1) parsing with Arrow and errors

I wanted to write a parser based on John Hughes' paper Generalizing Monads to Arrows. When reading through and trying to reimplement his code I realized there were some things that didn't quite make ...
Ace shinigami's user avatar
0 votes
0 answers
721 views

Spring-boot is not recognising Koltin serializers written for third party libraries

The external class I am using: https://github.com/arrow-kt/arrow/blob/5e0db6b7aaeb1ac99ecbfff74f03cce28e234391/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Either.kt#L725 Either Sealed ...
Subhod I's user avatar
  • 172
0 votes
1 answer
350 views

Retrieving data from REST API

I am trying to implement my first project in Laravel that will contain APIs, more specifically the Sportmonks API. What is the best way to get the data and display it in my view? I have managed to ...
 fsociety's user avatar
2 votes
2 answers
442 views

How to have split arrow in GraphViz?

I want to have branching arrows like this graph: Here is my current code: digraph { splines=curved a -> b -> c -> d -> e e -> a [ label=1 ] e -> f [ label=2 ] } ...
Ooker's user avatar
  • 2,190
0 votes
1 answer
79 views

Creating road sign style outline for a tag cloud

I would like to create a tag cloud display with a slightly rounded arrow pointing right as the outline for each tag using just CSS3. My current effort is shown below. body,html{margin:0;padding:0;...
DroidOS's user avatar
  • 8,620
5 votes
3 answers
336 views

Arrow "proc" notation in F#

Is there an implementation of "proc" notation for arrows in F#? In Haskell, it looks like this: mean2 :: Fractional a => Circuit a a mean2 = proc value -> do t <- total -< ...
Brian Berns's user avatar
1 vote
1 answer
131 views

parsing XML with Haskell with HXT

I am trying to parse an XML file with https://hackage.haskell.org/package/hxt. In the code below, I need to parse the inner elements with an extra parameter obtained from an attribute in the outer tag....
Alexandre Rademaker's user avatar
1 vote
2 answers
704 views

Is a Generalization between primary & secondary Actor allowed?

Is it allowed in UML to generate arrow as follows between Administrator and Member ? On one hand, Admin is a secondary actor because he will react according members actions. On the other hand, he ...
Tarantino's user avatar
2 votes
1 answer
126 views

Is there any reason why the Profunctor instance of (->) defines both dimap and lmap/rmap?

In the source code on Hackage I read this: instance Profunctor (->) where dimap ab cd bc = cd . bc . ab {-# INLINE dimap #-} lmap = flip (.) {-# INLINE lmap #-} rmap = (.) {-# INLINE ...
Enlico's user avatar
  • 24k
3 votes
1 answer
70 views

mapA for stream processors which could block (asynchronous circuits)

Note: If you haven't stumbled upon asynchronous circuits yet, reading my two other Stack Overflow posts (besides John Hughes' article where he wrote them down) on them could come in quite handy: "...
Zhiltsoff Igor's user avatar
1 vote
0 answers
551 views

Drawing a 3D circular arrow around a vector in MATLAB

How do I create a circular arrow (in3D) in Matlab? As shown in the figure below, I have a vector v and want to draw a circular arrow around the vector to show the direction of Torque.
unfinished_sentenc's user avatar
-1 votes
1 answer
2k views

Focus does not work when pressing ArrowDown and ArrowUp with HostListener

I am looking for a way to focus/highlight on each div element with ArrowUp and ArrowDown keys. With tabindex as 0 in the div element, the first value in the drop down gets a highlighted border but is ...
user2720919's user avatar
0 votes
1 answer
184 views

GridSpec and ConnectionPatch Issues

I'm trying to have one large plot, and then use arrows to connect outliers to smaller plots. I used gridspec to create my plots, and on their own they show up perfectly. However, when I try to use ...
OmniWheel's user avatar
3 votes
2 answers
449 views

SVG animate a bezier curve to grow by following an arrowhead

I'm trying to create an arrow with its arrowhead moving from a starting point and ending at its target. Moving the arrowhead was achieved successfully with the tip from @Robert Longson. I want the end ...
Velusamy Velu's user avatar
1 vote
1 answer
86 views

When building a Haskell Reader Arrow, what implementation of "ask" gets rid of the extraneous parameter?

Just got started with Arrows yesterday. As an exercise, I decided to try to build a "Reader Arrow" analogous to Control.Monad.Reader.Reader. I've called it EA ("Environment Arrow")....
Gregory Higley's user avatar
1 vote
1 answer
3k views

Create CSS curved arrow

I would like to create a curved responsive arrow in CSS. I have a text then the arrow comes and this arrow should point to a Qr code. I tried something and did some research, unfortunately my results ...
user avatar

1
2 3 4 5
7