Skip to content

Instantly share code, notes, and snippets.

@XerxesZorgon
Created November 12, 2023 14:51
Show Gist options
  • Save XerxesZorgon/bbe672407110399b8117fea9e8ae8cbb to your computer and use it in GitHub Desktop.
Save XerxesZorgon/bbe672407110399b8117fea9e8ae8cbb to your computer and use it in GitHub Desktop.
Veusz plot of normalized virus droplet diameters. Imports 'Normalized speaking coughing.csv'
# Veusz saved document (version 3.6.2)
# Saved at 2023-11-12T14:06:17.811731
SetCompatLevel(1)
ImportFileCSV('Normalized speaking coughing.csv', linked=True)
Set('colorTheme', 'default-latest')
Set('StyleSheet/Line/width', '2pt')
Set('StyleSheet/Font/font', 'Arial')
Set('StyleSheet/axis-function/autoRange', 'next-tick')
Set('StyleSheet/graph/topMargin', '1.7cm')
Set('StyleSheet/xy/markerSize', '1.5pt')
Set('StyleSheet/xy/MarkerLine/color', 'auto')
Add('page', name='page1', autoadd=False)
To('page1')
Add('graph', name='graph1', autoadd=False)
To('graph1')
Add('axis', name='x', autoadd=False)
To('x')
Set('label', 'Droplet diameter (\\mu-m)')
Set('min', 1.0)
Set('max', 1000.0)
Set('log', True)
Set('Label/font', 'Arial')
Set('Label/size', '18pt')
Set('Label/bold', True)
To('..')
Add('axis', name='y', autoadd=False)
To('y')
Set('label', 'Normalized counts')
Set('direction', 'vertical')
Set('Label/font', 'Arial')
Set('Label/size', '18pt')
Set('Label/bold', True)
To('..')
Add('bar', name='bar1', autoadd=False)
To('bar1')
Set('lengths', ('Counts',))
Set('posn', 'Diam')
Set('barfill', 1.0)
Set('groupfill', 1.0)
To('..')
To('..')
To('..')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment