Skip to content
Snippets Groups Projects
Select Git revision
  • 54d7a9f3c71fe8b7f5ae4882e27119d50e797c2f
  • main default protected
  • gitkeep
  • dev protected
  • Issue/2914-trellisMigrator
  • Issue/2847-reporting
  • Hotfix/2776-workingNewVersion
  • Hotfix/xxxx-correctAssignments
  • Issue/2666-adminCronjobs-theSequal
  • Issue/2666-adminCronjobs
  • Issue/2518-docs
  • Hotfix/xxxx-coscineGraph
  • Issue/2304-virtuosoRoars
  • Fix/v0.1.7-dependencies
  • Hotfix/2212-fixFiles
  • Issue/2222-resourceDateCreated
  • Issue/2221-projectDateCreated
  • Hotfix/xxxx-changeUrls
  • Issue/1321-pidEnquiryOverhaul
  • Issue/1782-structualDataIntegration
  • Issue/2084-migrateResourceStructuralData
  • v0.1.24
  • v0.1.23
  • v0.1.22
  • v0.1.21
  • v0.1.20
  • v0.1.19
  • v0.1.18
  • v0.1.17
  • v0.1.16
  • v0.1.15
  • v0.1.14
  • v0.1.13
  • v0.1.12
  • v0.1.11
  • v0.1.10
  • v0.1.9
  • v0.1.7
  • v0.1.8
  • v0.1.6
  • v0.1.5
41 results

RoleStructuralData.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)