In the middle of the desert you can say anything you want

16 Feb 2021

Day 777

matplotlib/pyplot invert/reverse axis

Unsurprisingly intuitive:

ax.set_ylim(1, 0)

(of course, problematic if you don’t know your actual limit)

EDIT Mi 10 Mär 2021 19:23:20 CET: There’s an even better solution! 1


Install pytorch on CUDA 10.0 + verify torch/cuda installation

Pytorch officially doesn’t do CUDA 10.0.x, but I found this, worked perfectly: How to Install PyTorch with CUDA 10.0 - VarHowto

Installing: pip install torch==1.4.0 torchvision==0.5.0 -f

Testing installation and GPU:

import torch
x = torch.rand(5, 3)


  1. matplotlib.axes.Axes.invert_yaxis — Matplotlib 3.3.4 documentation ↩︎

Nel mezzo del deserto posso dire tutto quello che voglio.