Skip to content

Commit

Permalink
Merge pull request #763 from IPG-Automotive-UK/bugfix/TD-2238-Units-A…
Browse files Browse the repository at this point in the history
…ppear-Wrong-In-Some-Post-Processed-Channels

TD-2238 Changed exponent format to scientific notation for Line and surface Plots.
  • Loading branch information
andnygIPG authored Nov 1, 2023
2 parents 8ec9b92 + c2f1e84 commit 3e06dd7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/LinePlot/LinePlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,15 @@ const LinePlot = ({
autosize: true,
margin: {
b: 35,
l: 60,
l: 80,
r: 10,
t: 30
},
paper_bgcolor: "rgba(0,0,0,0)",
plot_bgcolor: "rgba(0,0,0,0)",
xaxis: {
color: theme.palette.mode === "light" ? "" : "white",
exponentformat: "E",
gridcolor:
theme.palette.mode === "light" ? "" : theme.palette.grey["500"],
showgrid: false,
Expand All @@ -99,6 +100,7 @@ const LinePlot = ({
},
yaxis: {
color: theme.palette.mode === "light" ? "" : "white",
exponentformat: "E",
gridcolor:
theme.palette.mode === "light" ? "" : theme.palette.grey["500"],
ticksuffix: " ",
Expand Down
3 changes: 3 additions & 0 deletions src/SurfacePlot/SurfacePlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ const SurfacePlot = ({
camera: { eye: { x: 2 } },
xaxis: {
color: theme.palette.mode === "light" ? "" : "white",
exponentformat: "E",
gridcolor:
theme.palette.mode === "light"
? ""
Expand All @@ -103,6 +104,7 @@ const SurfacePlot = ({
},
yaxis: {
color: theme.palette.mode === "light" ? "" : "white",
exponentformat: "E",
gridcolor:
theme.palette.mode === "light"
? ""
Expand All @@ -117,6 +119,7 @@ const SurfacePlot = ({
},
zaxis: {
color: theme.palette.mode === "light" ? "" : "white",
exponentformat: "E",
gridcolor:
theme.palette.mode === "light"
? ""
Expand Down

0 comments on commit 3e06dd7

Please sign in to comment.