mirror of
https://codeberg.org/JasterV/Color-Plotter.git
synced 2026-04-26 18:10:05 +00:00
plot working!!
This commit is contained in:
parent
741349a669
commit
a996cc619b
1 changed files with 8 additions and 0 deletions
|
|
@ -2,6 +2,10 @@ import requests
|
||||||
import json
|
import json
|
||||||
from vector_utils import Vector as vec
|
from vector_utils import Vector as vec
|
||||||
|
|
||||||
|
from mpl_toolkits import mplot3d
|
||||||
|
import numpy as np
|
||||||
|
import matplotlib.pyplot as plt
|
||||||
|
|
||||||
def get_content(url):
|
def get_content(url):
|
||||||
response = requests.get(url)
|
response = requests.get(url)
|
||||||
content = response.content.decode()
|
content = response.content.decode()
|
||||||
|
|
@ -32,4 +36,8 @@ if __name__ == '__main__':
|
||||||
data_set = get_json(data_set_url)
|
data_set = get_json(data_set_url)
|
||||||
colors = parse_colors(data_set)
|
colors = parse_colors(data_set)
|
||||||
|
|
||||||
|
fig = plt.figure()
|
||||||
|
ax = plt.axes(projection='3d')
|
||||||
|
|
||||||
|
plt.show(fig)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue