Skip to content
Snippets Groups Projects
Select Git revision
  • 8209a7eda92489166dded4ddc721dc2e69e65f52
  • master default protected
  • dev protected
  • Issue/3003-stsInstitute
  • gitkeep
  • Issue/2449-GuidPidSlugToProjectSettings
  • Issue/2309-docs
  • Fix/xxxx-updateDependencies
  • Issue/2364-testingKpiParser
  • Issue/2287-guestRole
  • Test/xxxx-pipelineTriggers
  • Issue/2102-gitLabResTypeRCV
  • Issue/2278-gitlabToS
  • Issue/2101-gitLabResTypeUi
  • Issue/1788-extractionCronjob
  • Issue/2183-kpiGeneratorResource
  • Issue/2222-resourceDateCreated
  • Issue/2221-projectDateCreated
  • Issue/1321-pidEnquiryOverhaul
  • Issue/1999-gitlabResourcesLib
  • Issue/1951-quotaImplementation
  • v2.22.0
  • v2.20.0
  • v2.19.1
  • v2.19.0
  • v2.18.0
  • v2.17.0
  • v2.16.2
  • v2.16.1
  • v2.16.0
  • v2.15.0
  • v2.14.0
  • v2.13.0
  • v2.12.1
  • v2.12.0
  • v2.11.1
  • v2.11.0
  • v2.10.1
  • v2.10.0
  • v2.9.1
  • v2.9.0
41 results

ProjectQuotasModel.cs

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    example.py 1.37 KiB
    # -*- coding: utf-8 -*-
    """
    Created on Tue Jul 20 12:22:33 2021
    example workflow for integrating plotIDs
    @author: Richter
    """
    #%% Code und Konsole aufräumen
    %reset
    %matplotlib
    %clear
    #%% Module einbinden
    import sys
    import numpy as np
    from numpy import random
    import h5py as h5
    import matplotlib
    import matplotlib.pyplot as plt
    plt.style.use('fcn_help/FST.mplstyle')
    %matplotlib qt  
    #%matplotlib inline
    from FST_colors import Colors
    from TagPlot import TagPlot
    #%% Pfade hinzufügen
    sys.path.append("fcn_core")
    sys.path.append("fcn_help")
                    
    
    #%% Project ID
    ProjectID= "MR01"
    
    #%% Daten erzeugen
    x = np.linspace(0,10,100)
    y= random.rand(100) + 2
    y_2 = np.sin(x) +2 
    
    #%% Daten speichern
    dataset1 = "test_data.npy"
    np.save(dataset1, x,y, y_2)
    
    #%% figure erstellen
    # Farben
    colors = Colors() # create instance from class
    color_list = colors.get_color_names()
    # Plot erstellen
    color1 = colors.get_rgb('black')
    color2 = colors.get_rgb('yellow')
    #1.Figure
    fig1 = plt.figure()
    plt.plot(x,y, color=color1)
    plt.plot(x,y_2, color= color2)
    #plt.draw()
    # 2.Figure
    plt.clf #Figure schließen 
    fig2 = plt.figure()
    plt.plot(x,y, color=color2)
    plt.plot(x,y_2, color= color1)
    #plt.draw()
    plt.clf #Figure schließen
    
    fig = [fig1, fig2]
    
    [figs, ID] = TagPlot(fig, ProjectID)
    
    
    #%% Figure als tiff-Datei abspeichern
    for i in range(len(figs)):
        name = "Test"+str(i)+".tiff"
        figs[i].savefig(name)