Replies: 1 comment 2 replies
-
df.loc[df['mask'], 'markers'] = df.low
fplt.plot(df.markers, style='^') |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Jonas, I've found only this example (at least among those I can understand :) )
I can use this kind of line to mark some bars on the chart, i.e something happened.
I also found
fplt.add_line(), fplt.add_text()
but did not understand how to use them.Could you please provide an example (which you can also add to the list of examples) on how to add any symbol (string) for specific bars on the chart?
E.g. I have a column in the dataframe which I can use as a mask:
so how to use it to place a symbol (^) or string ('up') on the chart for every bar with mask='True'?
Maybe there are easier ways to do it. E.g. I also saw finplot.show() recognizes df.plot(), but I didn't find any solution except for the 'scatter' plot for my purpose.
Beta Was this translation helpful? Give feedback.
All reactions