Draw a graph in Julia ... I tried a little analysis

"Draw a graph in the programming language Julia" I succeeded in moving the sample for the time being, but the data created by my own program (in Julia language) I decided to find out how to draw a graph using. I modified the sample source to make the source at the end of the sentence (when saving, please save with UTF-8 character code). I set an array with 8 elements in a variable called data in the part wheredata = [1, 2, 3, 4, 5, 10, 20, 5]. After that, you can pass an array to the first argument of the plot method like p1.plot (data), p2.plot (data,…), p3.plot (data,…). It seems. Basically this may be OK!

2014-0629-2232.png

basic-plot.jl


using PySide
reload(Pkg.dir("PySide", "src", "pyqtgraph.jl"))
using PyQtGraph

w = Widget()
lyt = VBoxLayout(w)
setLayout(w, lyt)

win = GraphicsLayoutWidget(w)
addWidget(lyt, win)
set_size(w, 800, 200)

raise(w)

data = [1, 2, 3, 4, 5, 10, 20, 5]

p1 = addPlot(win, title="Basic array plotting (Basic)")
p1.plot(data)

p2 = addPlot(win, title="Multiple curves (Multiple)")
p2.plot(data, pen=(255,0,0))
p2.plot(data .+ 5, pen=(0, 255, 0))
p2.plot(data .+ 10, pen=(0,0,255))

p3 = addPlot(win, title="Drawing with points (point)")
p3.plot(data, pen=(200, 200, 200), symbol='f', symbolPen='w', symbolBrush=(255,0,0))

PySide.app[:exec_]()

Recommended Posts

Draw a graph in Julia ... I tried a little analysis
Draw a graph with Julia + PyQtGraph (2)
Draw a graph with Julia + PyQtGraph (1)
Draw a graph with Julia + PyQtGraph (3)
(Matplotlib) I want to draw a graph with a size specified in pixels
I tried to display the altitude value of DTM in a graph
Draw a graph of a quadratic function in Python
Draw a graph with Japanese labels in Jupyter
Draw a "breast curved surface" in a 3D graph (1)
I tried playing a typing game in Python
[Memo] I tried a pivot table in Python
I tried adding a Python3 module in C
[PyTorch] I was a little lost in torch.max ()
Draw a "breast curved surface" in a 3D graph (2)
Draw multiple photos in a graph from multiple folders
Draw graph in python
I tried to graph the packages installed in Python
I tried to draw a route map with Python
I tried to implement a pseudo pachislot in Python
I tried to draw a configuration diagram using Diagrams
Draw a graph with NetworkX
Draw a heart in Python
Draw a graph with networkx
I tried the super-resolution algorithm "PULSE" in a Windows environment
I tried to implement a one-dimensional cellular automaton in Python
I tried "a program that removes duplicate statements in Python"
I tried "How to get a method decorated in Python"
I created a class in Python and tried duck typing
I tried a little bit of the behavior of the zip function
I tried to make a stopwatch using tkinter in python
[Visualization] I want to draw a beautiful graph with Plotly
I get a UnicodeDecodeError in mecab-python3
I get a KeyError in pyclustering.xmeans
Draw a scatterplot matrix in python
Draw a loose graph with matplotlib
I tried running platypus which can solve a little optimization problem-Part 2
I tried to implement a misunderstood prisoner's dilemma game in Python
Draw retention rate graph in Matplotlib
I tried running GAN in Colaboratory
I tried to make an analysis base of 5 patterns in 3 years
Draw a graph with pandas + XlsxWriter
I tried using "Asciichart Py" which can draw a beautiful graph on the console with Python.
Draw a CNN diagram in Python
Draw a graph with PySimple GUI
I tried Line notification in Python
I tried to draw a system configuration diagram with Diagrams on Docker
I tried to develop a Formatter that outputs Python logs in JSON
I tried fractal dimension analysis by the box count method in 3D
I tried to perform a cluster analysis of customers using purchasing data
I tried to implement a card game of playing cards in Python
I tried to create a linebot (implementation)
I tried to implement PLSA in Python
I tried multiple regression analysis with polynomial regression
I tried to implement permutation in Python
I want to print in a comprehension
I tried to create a linebot (preparation)
I made a payroll program in Python!
How to draw a graph using Matplotlib
I tried time series analysis! (AR model)
I tried playing a ○ ✕ game using TensorFlow
Draw a heart in Ruby with PyCall