This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| abstract=$(curl -sS https://arxiv.org/abs/$1 | grep Abstract: -A 1000 | grep \<\/blockquote\> -B 1000 | sed -e 's/\<span.*span\> /Abstract: /' -e '/blockquote/d') | |
| echo $abstract | |
| echo Download pdf? [y/n] | |
| read choice | |
| if [ "$choice" == "y" ]; then | |
| curl -O $(echo https://arxiv.org/pdf/$1.pdf) | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """functions to add colorbar with respect to a known axis, without | |
| specifying the coordinates / size explicitly. | |
| Examples: | |
| To add a colorbar on top of a figure with a size 5% of the image, | |
| cax = add_colorbar(ax, size="5%", loc='top') | |
| This returns the colorbar axis that can pass to make a colorbar | |
| fig.colorbar(im, cax=cax) |