Page 1 of 1

JsxGraph Nur positive Achse einschließlich Null

Posted: 28 Feb 2025, 05:54
by Anonymous
Wie der Titel sagt, wie definiere ich die Standardachsen (sowohl x als auch y), dass sie mit 0 beginnen, nur in eine positive Richtung gehen und ein Zecken und ein Etikett bei Null haben. Irgendwelche Ideen?
Hier ist der relevante Teil: < /p>

Code: Select all

axis:true,
defaultAxes: {
x: {
straightFirst:false,
strokeWidth: 1,
strokeColor: "#000000",
ticks: {
strokeColor: "#000000",
drawZero: true,
insertTicks: false,
ticksDistance: 1,
strokeOpacity: 1,
strokeWidth: 1,
majorHeight: 5,
minorTicks:false,
majorTickEndings: [0,1]} },
y: {
straightFirst:false,
strokeWidth: 1,
strokeColor: "#000000",
ticks: {
drawZero: true,
strokeColor: "#000000",
insertTicks: false,
ticksDistance: 1,
strokeOpacity: 1,
strokeWidth: 1,
majorHeight: 5,
minorTicks:false,
majorTickEndings: [1,0]} }
}