Menu

#811 "Fix Layout" needs a dialog

open
nobody
None
5
2024-01-11
2023-10-13
No

Cindy and Connor both asked separately about how to make the stack of plots in Autoplot be without any space in between, and the "fix layout" action might provide this. It should bring up a dialog showing what the result will look like, and provide options like removing timetags in between and controlling the amount of whitespace in between plots.

Related

Feature Requests: #811

Discussion

  • Jeremy Faden

    Jeremy Faden - 2023-10-14

    What else should be in this dialog? For example "fix layout..." brings up a dialog which offers:
    * remove labels between plots
    * gap between plots: 0, 1/2em, 1em, ....

    Anything else we can think of (talking to you, Ivar)?

     
  • Jeremy Faden

    Jeremy Faden - 2023-10-14

    Fix layout should also automatically add a time axis at the bottom, or make this easy to do. I often see where people loose their time axis and don't know how to turn it back on.

     
    • Ivar Christopher

      On the topic of time axes, there needs to be some kind of explicit binding of
      all the non-visible time axes to the visible one. I'm always paranoid that one
      of the non-visble ones could get in a weird state where it's actually showing a
      different time range (it's happened...).

      I'll ponder other things for this dialog...

      Ta,

      Ivar

      On Sat, 14 Oct 2023, Jeremy Faden wrote:

      Fix layout should also automatically add a time axis at the bottom, or make
      this easy to do. I often see where people loose their time axis and don't
      know how to turn it back on.


      [feature-requests:#811] "Fix Layout" needs a dialog

      Status: open
      Group: Next Development Release
      Created: Fri Oct 13, 2023 11:00 PM UTC by Jeremy Faden
      Last Updated: Sat Oct 14, 2023 01:02 PM UTC
      Owner: nobody

      Cindy and Connor both asked separately about how to make the stack of plots in Autoplot be without any space in between, and the "fix layout" action might provide this. It should bring up a dialog showing what the result will look like, and provide options like removing timetags in between and controlling the amount of whitespace in between plots.


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/autoplot/feature-requests/811/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Feature Requests: #811

      • Ivar Christopher

        Option to turn on/off all plot titles.

        Ivar

        On Sat, 14 Oct 2023, Ivar Christopher wrote:

        On the topic of time axes, there needs to be some kind of explicit binding of
        all the non-visible time axes to the visible one. I'm always paranoid that
        one of the non-visble ones could get in a weird state where it's actually
        showing a different time range (it's happened...).

        I'll ponder other things for this dialog...

        Ta,

        Ivar

        On Sat, 14 Oct 2023, Jeremy Faden wrote:

        Fix layout should also automatically add a time axis at the bottom, or make
        this easy to do. I often see where people loose their time axis and don't
        know how to turn it back on.


        [feature-requests:#811] "Fix Layout" needs a dialog

        Status: open
        Group: Next Development Release
        Created: Fri Oct 13, 2023 11:00 PM UTC by Jeremy Faden
        Last Updated: Sat Oct 14, 2023 01:02 PM UTC
        Owner: nobody

        Cindy and Connor both asked separately about how to make the stack of plots
        in Autoplot be without any space in between, and the "fix layout" action
        might provide this. It should bring up a dialog showing what the result
        will look like, and provide options like removing timetags in between and
        controlling the amount of whitespace in between plots.


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/autoplot/feature-requests/811/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/

         

        Related

        Feature Requests: #811

  • Jeremy Faden

    Jeremy Faden - 2023-10-17

    Also needed is a normalization of the layout strings. Often I have tests fail because "100%+2.0em" is different than "100.0%+2em".

     
  • K Paulson

    K Paulson - 2023-10-18

    Maybe there could also be the option to place all legends in the "OutsideNE" position.

     
  • Jeremy Faden

    Jeremy Faden - 2023-10-19

    I'm going to finish off the v2023a_10 release today, and then I'll start working on this.

     
  • Jeremy Faden

    Jeremy Faden - 2023-10-24

    The devel version of Autoplot (20231021a) has a first go at this.

     
  • Jeremy Faden

    Jeremy Faden - 2023-10-26

    Cindy was looking for this function.

     
  • Jeremy Faden

    Jeremy Faden - 2023-10-28

    This is coming along. The epiphany I had this morning was that the percentages are of the margin row, not the canvas, so they were slightly off. Plus a dump index error.

     
  • Jeremy Faden

    Jeremy Faden - 2023-11-01

    Ivar and I noticed:
    * vap+cdaweb:ds=OMNI2_H0_MRG1HR&id=DST1800&timerange=Oct+2016
    * add plot below, vap+cdaweb:ds=OMNI2_H0_MRG1HR&id=KP1800&timerange=Oct+2016
    * remove the extra !c
    * fix layout.

    It doesn't leave enough room for the titles.

     
  • Jeremy Faden

    Jeremy Faden - 2023-11-03

    The problem where the extra !c is added is fixed. Also the problem where the x-axis label wasn't counted is fixed.

     
  • Jeremy Faden

    Jeremy Faden - 2023-11-03

    I've added the properties maxLayout and minLayout to Das2's DasColumn and DasRow objects, so that Autoplot can simply bind to these and the problem of managing layout is all in one class. Autoplot now simply binds to these properties.

     
  • Jeremy Faden

    Jeremy Faden - 2023-11-06

    This is close to working ideally. There's a jump when this idempotent operation is invoked a second time. Here are the two states, the second is after "autolayout" scoots things in:

    marginRow_0: 0%+3.0em,100%-0.0em (626 pix)
      row_21: 0.00%+0.00em,31.95%-1.00em (190 pix)
      oneEmRow: 31.95%+0.00em,31.95%+1.00em (10 pix)
      row_23: 31.95%+2.00em,64.38%+1.00em (193 pix)
      row_25: 64.38%+2.00em,101.60%-2.00em (193 pix)
    ratio of last two heights: 1.00
    ----
    marginColumn_0: 0%+3.0em,100%-10.0em (595 pix)
    
    
    
    marginRow_0: 0%+3.0em,100.00%-4.0em (586 pix)
      row_21: 0.00%+0.00em,32.10%-1.0em (178 pix)
      oneEmRow: 32.10%,32.10%+1.0em (10 pix)
      row_23: 32.10%+2.0em,64.40%+1.0em (179 pix)
      row_25: 64.40%+2.0em,101.60%-2.0em (178 pix)
    ratio of last two heights: 1.01
    ----
    marginColumn_0: +8.0em,100.00%-11.0em (535 pix)
    
     

    Last edit: Jeremy Faden 2023-11-06
  • Jeremy Faden

    Jeremy Faden - 2023-12-02

    There's an issue with "inset" plots where a special row and column are added. This should be detected and ignored in the fix layout, or moved relative to the plot they were on before the fix layout operation.

    1 . add plots, 3x3, replace current
    2. add plot, inset plot
    3. fix_layout

    You can see that the insert plot's row and column are handled along with the others.

     

    Last edit: Jeremy Faden 2023-12-02
  • Jeremy Faden

    Jeremy Faden - 2024-01-11

    The action "Break into stack of plots" would hang because fix layout would call waitUntilIdle when the action would get a mutator lock. It now checks that there's a mutator that is locked.