How to Plot in Julia
HTML-код
- Опубликовано: 8 фев 2025
- To plot in Julia, I explain how to install the Plots.jl package. We customize the plots with the use of PlotThemes.jl package to make them beautiful. Plot3d, surface plot, scatter plot, and histograms are explained.
---
Check out our Julia Programming for Beginners playlist:
• Julia Programming for ...
---
Link the packages used
github.com/Jul...
github.com/Jul...
---
🌐 Connect with us:
🌐 Website: numeryst.com
Great video. It worked very well in my computer
I'l see your other videos.
Glad it helped!
Very good tutorial, thank you!
Glad you enjoyed it!
Helpful video. There´s a way I can convert a plot into an image and download it as PNG or JPG?
Yes, you can use "savefig" function.
What do you do if VScode does not display any image when using Plots?
There could be several possible reasons, I mention the most probable ones:
1. When running scripts, explicitly call display() on your plot object. For example:
using Plots
p = plot(1:10, rand(10))
display(p)
2. Try Different Backends.
3. Restart VSCode.
4. Ensure Plot Pane is Enabled:
Go to the settings in VSCode and make sure that the "Use Plot Pane" option is enabled. This setting allows plots to be displayed directly within the VSCode interface.
5. Start Julia REPL Correctly:
Make sure to start Julia using the command Julia: Start REPL from the command palette (Ctrl+Shift+P). Starting it manually from a terminal may not integrate properly with VSCode.
thanks for this video, is it possible to make Gauge using this lib?
By Gauge, are you referring to Gauge charts?
with the same library which you are using is it possible to make gauge visualization? or gauge still not supported?@@Numeryst
Plots.jl doesn't have a dedicated gauge chart function, you can achieve similar visualizations with some creativity and its core plotting functionalities.
Do you have a list of what extensions you are using?
For VSCode? For VSCode, I only use Julia VSCode extension.
Why do you need vscode? Won't any terminal do?
You can use terminal but that depends on your goals and what you are comfortable with!
Why doesn't the figure fill the entire width of the plot pane of VSCode?
You should specify figure size and whether you keep the aspect ratio fixed or not.
@@Numeryst Thank you and thanks for the video series on Julia.
@@NamasenITN You're welcome!
video is nice, but I copied 3D plot script and it didn`t work :(
You probably have not imported the packages properly. I have run the code in the video!
Where could i learn Julia
Here is the link:
ruclips.net/p/PLLlTVphLQsuM7pZgoQym3VxIbqnz-Uxna
Thank you
@@soyuz3352 You're welcome!
Looks simpler than matplotlib.
Yes, indeed, it is simpler!