That’s a really old version. Any particular reason why you don’t use a recent one?
Makie has seen some amazing improvements since then. But also quite a few breaking changes. I’d say better learn the current system now than cling to the old.
By the way, you should have gotten an error saying title is undefined. You didn’t because AbstractPlotting was still loaded. It’s no longer required.
But actually the same code I posted above works with the older Makie.
I have a question why would when I add Makie in another project environment it is the version 0.15.1 but in another project environment I made quite a long time ago, Makie that I added is already version 0.18.1
You give CairoMakie example and I will test it in different env.
I think Makie team should be making books of tutorial like SciPy created books for documentation with the code or like CalculusWithJulia so people can follow up the newest upgrade.
Ideally an up-to-date and pedagogical documentation with many examples would exist. But that’s a lot of work to maintain. I personally find the current Makie documentation mostly sufficient. And who knows if CalculusWithJulia will be kept up to date in the long run.
To elaborate on @skleinbo’s answer: in this old project you have an old version of GLMakie. When you install Makie there, it picks a version compatible with this old GLMakie. Try running ]update in that project.
It would be great to have a book on Makie, but it’s probably too early. Keep in mind that SciPy is a very mature project (>20 years old!). It’s very stable so people can put a lot of effort in extensive documentation and it will be valid for years to come.
On the other hand Makie is still a young project that’s evolving fast. It’s not stable (it hasn’t reached 1.0 yet). Every year there are several releases with breaking changes. If you write a book now it will be outdated in a few months.
By the way note that it took 16 years for SciPy to reach version 1.0. That happended around the same time that Makie had its first commit (end of 2017). I’m hopeful Makie will reach 1.0 before 2033
Wow, thanks a lot for the explanation. Indeed Julia is still new too born on 2012.
I just know that SciPy is that old.
You must be the master of Computer, Julia and Makie, thus can make me understand why writing Makie book is not a wise thing to do now…
Makie is great, but there are lots of plotting packages (GR, PlotlyJS, PyPlot, Gaston) in Julia, should we make vote or make competition for them all in all fields of science?