[–] 2 points 6 months ago (4 children)

That colourblind palette is golden, thank you for sharing it. And I was just talking about me wanting have a crack at creating that arrow myself, but thank you for offering to share. I'll be sure to reach out if I find myself being unable to replicate it.

I wasn't even talking about tikzplotlib. It's just that pgf backend is now supported by matplotlib and you can produce pgf files with:

import matplotlib.pyplot as plt
import matplotlib

matplotlib.use('pgf')

fig, ax = plt.subplots()
# Code related to plotting here

fig.savefig("outputfile.pgf")

with relevant rcParams options in matplotlibrc, then import the pgf with:

\begin{figure}[h]
    \centering
      \resizebox{\linewidth}{!}{
        \input{outputfile.pgf}
      }
    \caption{Caption here.}
\end{figure}

But Python -> CSV -> LaTeX/pgf pipeline is quite smooth, for sure. I understand why you'd decide to opt for it without involving too many third-party dependencies.

  • source
  • parent
  • context
  • [–] 3 points 6 months ago* (last edited 6 months ago) (6 children)

    I'm already thinking about how to replicate that blue arrow in Fig. 2. It looks very clean. And the patterns in the plots do have a pgfplots vibe to it, so that makes sense.

    In case you're not aware, it is also possible to have pgf outputs that preserve scaling with matplotlib with similar serif fonts for the labels that you can specify in matplotlibrc of the project. Hopefully you'd find that useful if you ever decide to use matplotlib beyond some quick plots.

  • source
  • parent
  • context
  • [–] 16 points 6 months ago* (8 children)

    Congratulations on your first first-author publication in a conference. The topic seems very interesting and I have yet to give the paper a good read-through, but I already like how well-presented it is. Did you use TikZ for the diagrams and matplotlib for the graphs?

  • source
  • [–] 2 points 7 months ago (1 child)

    That is a very interesting take. I can't relate to most of the advantages of imperial you mentioned since I've grown up with primarily metric. Exposure to a specific system for a certain period of time lets the mind just acclimate to that system (calculations inclusive), and conversion to imperial just feels like a chore to me. That being said, I can definitely see where you're coming from.

    Thank you for this detailed answer.

  • source
  • parent
  • context
  • view more: next ›