Add property FormatSpacing to root

View: New views
2 Messages — Rating Filter:   Alert me  

Add property FormatSpacing to root

by David Grundberg-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi bug-list,

In Matlab's "display" function help text, there is an example how to
implement a user-defined display method. The root property FormatSpacing
is used in this example. Octave doesn't have such a property.

I attached a changeset that adds a formatspacing root property.

David


# HG changeset patch
# User David Grundberg <davidg@...>
# Date 1257241954 -3600
# Node ID d82e637c479e1d732e46de4e796c3df29e199198
# Parent  4634a0e9ea1b43041cfa4ff2b2e3e2ad76206e83
Add property FormatSpacing to root

diff -r 4634a0e9ea1b -r d82e637c479e src/ChangeLog
--- a/src/ChangeLog Mon Nov 02 21:34:04 2009 -0500
+++ b/src/ChangeLog Tue Nov 03 10:52:34 2009 +0100
@@ -1,3 +1,7 @@
+2009-11-03  David Grundberg  <davidg@...>
+
+ * graphics.h.in (root_figure): Add FormatSpacing property.
+
 2009-11-02  Jaroslav Hajek  <highegg@...>
 
  * ov-class.cc (octave_class::unique_parent_class): New method.
diff -r 4634a0e9ea1b -r d82e637c479e src/graphics.h.in
--- a/src/graphics.h.in Mon Nov 02 21:34:04 2009 -0500
+++ b/src/graphics.h.in Tue Nov 03 10:52:34 2009 +0100
@@ -2210,6 +2210,7 @@
       array_property screensize r , default_screensize ()
       double_property screenpixelsperinch r , default_screenpixelsperinch ()
       radio_property units U , "inches|centimeters|normalized|points|{pixels}"
+      radio_property formatspacing , "{loose}|compact"
       bool_property showhiddenhandles , "off"
     END_PROPERTIES
 

_______________________________________________
Bug-octave mailing list
Bug-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/bug-octave

Add property FormatSpacing to root

by John W. Eaton-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On  3-Nov-2009, David Grundberg wrote:

| In Matlab's "display" function help text, there is an example how to
| implement a user-defined display method. The root property FormatSpacing
| is used in this example. Octave doesn't have such a property.
|
| I attached a changeset that adds a formatspacing root property.

I applied it and also checked in the following changes that provide
some additional root figure properties for compatibility:

  http://hg.savannah.gnu.org/hgweb/octave/rev/2364eebcd644
  http://hg.savannah.gnu.org/hgweb/octave/rev/2941c1daf509

Thanks,

jwe
_______________________________________________
Bug-octave mailing list
Bug-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/bug-octave