朱莉娅(Julia)展示只有一种颜色的烛台图

发布于 2025-01-29 22:46:38 字数 366 浏览 3 评论 0原文

我无法正确地绘制朱莉娅的烛台。 这是示例代码:

using Plots
using Dates
using MarketData
using TimeSeries
gr()

ta = yahoo(:GOOG, YahooOpt(period1 = now() - Month(1)))
display(plot(ta, seriestype= :candlestick))

我得到的输出在下面 带有一种颜色的烛台图

如何确保我得到红色&绿色蜡烛?

I am unable to plot candlestick in Julia properly.
Here is a sample code:

using Plots
using Dates
using MarketData
using TimeSeries
gr()

ta = yahoo(:GOOG, YahooOpt(period1 = now() - Month(1)))
display(plot(ta, seriestype= :candlestick))

The output I get is below
Candlestick Plot with one colour

How to ensure that I get red & green candles?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦亿 2025-02-05 22:46:38

我会更新您的安装。我使用Julia 1.8.0-Beta3和图版本1.29获得两种颜色:

https:https://i.sstatic。 net/q1p7j.png

I would update your installation. I get two colors with Julia 1.8.0-beta3 and Plots version 1.29:

https://i.sstatic.net/q1p7J.png

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文