From ac87d178eb3322cda9b1a9329195bfab1cb5cce7 Mon Sep 17 00:00:00 2001 From: "Hock, Martin" <martin.hock@fst.tu-darmstadt.de> Date: Wed, 4 May 2022 09:55:45 +0200 Subject: [PATCH] Delete ?test.py cause the name causes issues on windows OS and the contents were only for example data creation --- fcn_help/?test.py | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 fcn_help/?test.py diff --git a/fcn_help/?test.py b/fcn_help/?test.py deleted file mode 100644 index c22bc16..0000000 --- a/fcn_help/?test.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- -""" -Created on Tue Jul 27 11:40:58 2021 - -@author: Richter -""" -from matplotlib import pyplot as plt - -fig_size = (10, 5) -f = plt.figure(figsize=fig_size) - -def plot_signal(time, signal, title='', xlab='', ylab='', - line_width=1, alpha=1, color='k', - subplots=False, show_grid=True, fig=f): - - # Skipping a lot of other complexity here - - axarr = f.add_subplot(1,1,1) # here is where you add the subplot to f - plt.plot(time, signal, linewidth=line_width, - alpha=alpha, color=color) - plt.set_xlim(min(time), max(time)) - plt.set_xlabel(xlab) - plt.set_ylabel(ylab) - plt.grid(show_grid) - plt.title(title, size=16) - - return(f) - -time = [0:1:100] -signal= [200:300:100] - -f = plot_signal(time, signal, fig=f) \ No newline at end of file -- GitLab