ich möchte gerne mein Diagramm in der Latex-Schriftart "Helvetica" beschriften.
Ich bekomme aber immer den Fehler: "RuntimeError: Failed to process string with tex because latex could not be found"
Das Minimalbeispiel sieht wie folgt aus:
Code: Alles auswählen
import numpy as np
import pandas as pd
import os
import math
import matplotlib.pyplot as plt
plt.rcParams.update({
"text.usetex": True,
"font.family": "Helvetica"
})
a = pd.DataFrame([1,5,10],columns=["1"])
b = pd.DataFrame([
2,
4,
5,
],columns=["2"])
## Combine Data
data = pd.concat([a, b],axis=1)
### Plot
plt.figure(1)
plt.plot(data["1"],data["2"], '-o')
plt.xlabel('Abstand ')
plt.ylabel('Hoehe')
vanKey