Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://github.com/thompsar/Venison
08 May 2024, 12:04:05 UTC
  • Code
  • Branches (1)
  • Releases (0)
  • Visits
Revision c622d9ab2eb3089cb7e4b1f73fe57c4de25de9a2 authored by Andrew Thompson on 12 May 2020, 20:45:14 UTC, committed by GitHub on 12 May 2020, 20:45:14 UTC
Update README.md
1 parent e9dc3e5
  • Files
  • Changes
    • Branches
    • Releases
    • HEAD
    • refs/heads/master
    • c622d9ab2eb3089cb7e4b1f73fe57c4de25de9a2
    No releases to show
  • bd02192
  • /
  • src
  • /
  • spec_plot.py
Raw File Download
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • revision
  • directory
  • content
  • snapshot
origin badgerevision badge
swh:1:rev:c622d9ab2eb3089cb7e4b1f73fe57c4de25de9a2
origin badgedirectory badge Iframe embedding
swh:1:dir:7ce9a88092d9671483dc9eb89d59650d3e300db6
origin badgecontent badge Iframe embedding
swh:1:cnt:7d52841baa7ba51adb0ab737e08a5ee42a863496
origin badgesnapshot badge
swh:1:snp:71e7db0713a1908384d6d87dbe47c158ef2e85eb
Citations

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • revision
  • directory
  • content
  • snapshot
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Tip revision: c622d9ab2eb3089cb7e4b1f73fe57c4de25de9a2 authored by Andrew Thompson on 12 May 2020, 20:45:14 UTC
Update README.md
Tip revision: c622d9a
spec_plot.py
from bokeh.plotting import figure
from src.mycolors import mycolors

def spec_plot(datalist,colorlist=None,**kwargs):
    golden=1.61803
    height=400
    #plot_width=int(height*golden)
    if 'plot_height' not in kwargs:
        kwargs['plot_height']= height
        kwargs['plot_width']=int(height*golden)
    if 'plot_width' not in kwargs:
        kwargs['plot_width']=int(kwargs['plot_height']*golden)
        
    myplot=figure(**kwargs)
    myplot.outline_line_alpha=0
    
    #Xaxis prefs
    myplot.xgrid.grid_line_color = None
    myplot.xaxis.axis_label="Evolution Time (μs)"
    myplot.xaxis.axis_label_text_font='helvetica'
    myplot.xaxis.axis_label_text_font_style='normal'
    myplot.xaxis.axis_label_text_font_size='24pt'
    myplot.xaxis.major_label_text_font='helvetica'
    myplot.xaxis.major_label_text_font_size='16pt'

    #Yaxis prefs
    myplot.ygrid.grid_line_alpha = 0.5
    myplot.ygrid.grid_line_dash = [6, 4]
    myplot.yaxis.major_label_text_font='helvetica'
    myplot.yaxis.major_label_text_font_size='16pt'

    if not colorlist: #if colorlist is not present, use default scheme
        for i in range(int(len(datalist)/2)):
            myplot.line(datalist[i*2],datalist[i*2+1], color=mycolors(i), line_width=1)
        return myplot
    else:
        for i in range(int(len(datalist)/2)):
            myplot.line(datalist[i*2],datalist[i*2+1], color=colorlist[i], line_width=1)
        return myplot
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Contact— JavaScript license information— Web API

back to top