Assuming using conda and python 3.9. Shoutout to all the creators of these tools! Check the respective instructions for the different packages before proceeding.
Install Lemmy with pip
https://github.com/sorenlind/lemmy/
pip install lemmy
| # Bracket annotation function | |
| def add_bracket(ax, x0, x1, y, text='', xycoords='data', bracket_height=12, pointer_height=6, arrowprops=None, color='blue', linewidth=1, rad=10, **kwargs): | |
| """ | |
| Adds a bracket annotation to the given axes. | |
| Returns the last annotation patch. | |
| Parameters: | |
| ax (matplotlib.axes._axes.Axes): The axes to annotate. | |
| x0 (float): The starting x-coordinate of the bracket. |
Assuming using conda and python 3.9. Shoutout to all the creators of these tools! Check the respective instructions for the different packages before proceeding.
Install Lemmy with pip
https://github.com/sorenlind/lemmy/
pip install lemmy
| // Script that moves all items from each artboard to a new layer with the same name as the artboard | |
| // modified from answer by DilliamWowling | |
| // https://community.adobe.com/t5/illustrator-discussions/multiple-artboards-to-multiple-layers/m-p/8922266#M43797 | |
| function layersFromArtboards() | |
| { | |
| var docRef = app.activeDocument; |
| # file is full system path to word list file with one word per line | |
| wordlist = file(u"/MYHOMEFOLDER/finnish.txt","r" ) | |
| dstr = [line.rstrip("\n").decode("utf-8", "replace") for line in wordlist] | |
| #w0 = u"tiede" | |
| #w0l = len(w0) | |
| #results =[] | |
| #for e in dstr: |
| Year,m,d,Time,Time zone,Precipitation amount (mm),Snow depth (cm),Air temperature (degC),Maximum temperature (degC),Minimum temperature (degC) | |
| 1960,1,1,00:00,UTC,-1,29,-1.5,0.1,-7.6 | |
| 1960,1,2,00:00,UTC,-1,28,0.3,1.3,-0.5 | |
| 1960,1,3,00:00,UTC,0.1,29,0,1.1,-0.6 | |
| 1960,1,4,00:00,UTC,0,29,-0.2,0.1,-1 | |
| 1960,1,5,00:00,UTC,17.6,29,0.4,1.9,-0.5 | |
| 1960,1,6,00:00,UTC,8.7,47,-0.1,0.6,-0.6 | |
| 1960,1,7,00:00,UTC,0.3,48,-6.2,0,-10.5 | |
| 1960,1,8,00:00,UTC,0.8,48,-11.8,-10.3,-13.7 | |
| 1960,1,9,00:00,UTC,-1,47,-13.1,-11,-13.6 |
| import sys | |
| import os | |
| import re | |
| dir_path = os.path.dirname(os.path.realpath(__file__)) + '/' | |
| static_content_folder = 'static/custom/ai2html-output/' | |
| # script takes two arguments "input" and "output" and optional static content folder arg | |
| # .js extension is added to output |