Snippets Collections
import tkinter as tk
from tkinter import ttk

root = tk.Tk()

# Pack a big frame so, it behaves like the window background
big_frame = ttk.Frame(root)
big_frame.pack(fill="both", expand=True)

# Set the initial theme
root.tk.call("source", "sun-valley.tcl")
root.tk.call("set_theme", "light")

def change_theme():
    # NOTE: The theme's real name is sun-valley-<mode>
    if root.tk.call("ttk::style", "theme", "use") == "sun-valley-dark":
        # Set light theme
        root.tk.call("set_theme", "light")
    else:
        # Set dark theme
        root.tk.call("set_theme", "dark")

# Remember, you have to use ttk widgets
button = ttk.Button(big_frame, text="Change theme!", command=change_theme)
button.pack()

root.mainloop()
#importing Autoviz class
from autoviz.AutoViz_Class import AutoViz_Class#Instantiate the AutoViz class
AV = AutoViz_Class()

df = AV.AutoViz('car_design.csv')
xx = -1:0.1:1
y = x.^2
plot(x,y)
xlabel('time [s]')
ylabel('amplitude')
title('my plot')
legend('y(t)')
# multiple line plots
plot(monthz, avgTempLondon,'r:o')
hold on # tells the graph to keep the prior plots
plot(month, avgTempRio, 'b-*')

# mixed plot types
bar(month, maxTempLondon,'yellow')
hold on
plot(monthz, avgTempLondon,'red')
star

Thu May 27 2021 02:56:24 GMT+0000 (UTC) https://towardsdatascience.com/autoviz-automatically-visualize-any-dataset-75876a4eede4

#python #data #visualisation #graphs #plots #charts #dashboards
star

Sat Mar 20 2021 07:23:04 GMT+0000 (UTC)

#matlab #plots
star

Sat Mar 20 2021 07:20:12 GMT+0000 (UTC)

#matlab #plots

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension