![]() If this is your first plot of the session and it takes a while to show up, this is normal this latency is called the "time to first plot" problem (or TTFP), and subsequent plots will be fast. The plot is displayed in a plot pane, a stand-alone window or the browser, depending on the environment and backend (see below). To do this in Julia, we insert a dot right after the function call. For the y coordinates, we can create a vector by evaluating sin(x) in an element-wise fashion. For the x coordinates, we can create a range from 0 to 10 of, say, 100 elements. To start, let's plot some trigonometric functions. Depending on your computer, this will take a few seconds: using Plots ![]() Basic Plotting: Line PlotsĪfter you have installed Plots.jl via Pkg.add("Plots"), the first step is to initialize the package. It is recommended that the code examples be followed inside the REPL or an interactive notebook. Its main goal is to introduce you to the terminology used in the package, how to use Plots.jl in common use cases, and put you in a position to easily understand the rest of the manual.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |