專案

一般

配置概況

Bug #66 » plot.py

建誠 林, 2023-11-02 00:23

 
import tensorflow as tf
import matplotlib.pyplot as plt
import numpy as np
from keras.models import load_model
import statistics
import os

def plot(plot_name,plot_data_x,plot_data_y,plot_data_x1,plot_data_y1,plot_name_x,plot_name_y):
plt.figure(figsize=(10, 10))
plt.xlabel(plot_name_x)
plt.ylabel(plot_name_y)
plt.title(plot_name)
plt.scatter(plot_data_x,plot_data_y,color="Red", marker='o')
plt.scatter(plot_data_x1,plot_data_y1,color="Blue", marker='^')
plt.grid(True)
plt.savefig(plot_name+".png")
plt.show()
(4-4/6)