-
Notifications
You must be signed in to change notification settings - Fork 7
/
line3.py
64 lines (52 loc) · 1.52 KB
/
line3.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import numpy as np
from mpl_plotter.three_d import line
def basic_line():
"""
Quite basic line
"""
line(show=True,
# Basic setup
figsize=(7, 8), azim=33, elev=27)
def medium_line():
"""
Slightly customized line
"""
line(show=True,
# Basic setup
figsize=(7, 8), azim=33, elev=27,
# Some customization
label_x=None, label_y=None, label_z=None,
pad_demo=True, color="green",
tick_number_x=3, tick_label_size_x=10, tick_locations_x=[-0.5, 0.5],
tick_number_y=1, tick_label_size_y=20,
tick_number_z=1, tick_label_size_z=20)
def custom_line():
"""
Heavily customized line
"""
line(figsize=(7, 8), azim=33, elev=27,
# Specifics
line_width=10,
# Color
color="black",
# Bounds
pad_demo=True,
# Title
title="Custom Line", title_font="Pump Triline", title_size=80, title_color="orange", title_y=0.95,
# Labels
label_x="x", label_size_x=30, label_pad_x=25,
label_y="$\Psi$", label_size_y=30, label_rotation_y=0, label_pad_y=25,
# Ticks
tick_color="darkorange",
tick_label_decimals=4,
tick_number_x=12, tick_number_y=12,
tick_rotation_x=-35, tick_rotation_y=25,
# Scene colors
workspace_color="darkred",
pane_fill="#fff9de",
# Grid
grid=True, grid_color="grey",
show=True)
# basic_line()
# medium_line()
custom_line()