Menu

#1540 Minsky 3.0.0 Graph changes to something incorrect with switch

StuartMill
closed
nobody
None
4normal
2023-05-08
2022-12-11
TomScat
No

I was trying to figure out what the Switch function really does (I found out by now).

Very simple model: with t <= 10 output = 1 , t >10 output = 2

Graph runs correct until 10 then redraws with first part on the axis.

3 Attachments

Discussion

  • High Performance Coder

    I don't think this is a bug, but I agree the plot is a little confusing. If you look carefully at the bottom left corner, you will notice a 1 just under the 0 (which is actually an x-axis label). That 1 is the y-axis label, so the line has value 1.

    If you wanted to tidy the graph, you could add bounds to the y-axis rather than relying on the autoscaling function.

     
  • High Performance Coder

    • status: open --> wont-fix
     
  • TomScat

    TomScat - 2023-05-08
    • status: wont-fix --> closed
     

Anonymous
Anonymous

Add attachments
Cancel