Skip to content

Commit d378ff2

Browse files
0.7.3
1 parent 3cca73e commit d378ff2

19 files changed

Lines changed: 405 additions & 10 deletions

en/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![banner](banner_homepage.png)
22

3-
### Nelson 0.7.2.0
3+
### Nelson 0.7.3.0
44

55
This is an pre-release of Nelson.
66

en/SUMMARY.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,7 @@
777777

778778
- [graphics](./graphics/README.md)
779779

780+
- [ancestor](./graphics/ancestor.md)
780781
- [autumn](./graphics/autumn.md)
781782
- [axes](./graphics/axes.md)
782783
- [axis](./graphics/axis.md)
@@ -818,6 +819,7 @@
818819
- [meshz](./graphics/meshz.md)
819820
- [newplot](./graphics/newplot.md)
820821
- [parula](./graphics/parula.md)
822+
- [patch](./graphics/patch.md)
821823
- [pcolor](./graphics/pcolor.md)
822824
- [pink](./graphics/pink.md)
823825
- [plot](./graphics/plot.md)
@@ -838,6 +840,7 @@
838840
- [text](./graphics/text.md)
839841
- [title](./graphics/title.md)
840842
- [turbo](./graphics/turbo.md)
843+
- [validatecolor](./graphics/validatecolor.md)
841844
- [view](./graphics/view.md)
842845
- [viridis](./graphics/viridis.md)
843846
- [white](./graphics/white.md)

en/changelogs/CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,30 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

7+
## 0.7.3 (2023-03-28)
8+
9+
### Added
10+
11+
- `patch` Create patches of colored polygons.
12+
- `ancestor` Ancestor of graphics object.
13+
- hexadecimal color code managed example: '#DDFF00'.
14+
- `validatecolor` Validate color values.
15+
- [851](http://github.com/Nelson-numerical-software/nelson/issues/851): Build with micromamba environment (linux and macOS)
16+
17+
### Changed
18+
19+
- Figure property `Position` uses position based on bottom left position for compatibility.
20+
- internal: boost no more used to read/write json files.
21+
- internal: taglib library is optional.
22+
- version date updated with each build.
23+
24+
### Fixed
25+
26+
- [866](http://github.com/Nelson-numerical-software/nelson/issues/866): Close menu on figure can crash on linux.
27+
- graphic hierarchy was not fully destroyed after `close` or `delete`.
28+
- labels were not displayed correctly when the logarithmic scale was enabled.
29+
- [869](http://github.com/Nelson-numerical-software/nelson/issues/869): missing help files in linux package.
30+
731
## 0.7.2 (2023-02-27)
832

933
### Changed

en/graphics/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Graphics functions
66

77
graphics functions
88

9+
- [ancestor](ancestor.md) - Ancestor of graphics object.
910
- [autumn](autumn.md) - Autumn colormap array.
1011
- [axes](axes.md) - Create cartesian axes.
1112
- [axis](axis.md) - Set axis limits and aspect ratios.
@@ -47,6 +48,7 @@ graphics functions
4748
- [meshz](meshz.md) - Mesh surface plot with curtain.
4849
- [newplot](newplot.md) - Prepare to produce a new plot.
4950
- [parula](parula.md) - Parula colormap array.
51+
- [patch](patch.md) - Create patches of colored polygons
5052
- [pcolor](pcolor.md) - Pseudocolor plot.
5153
- [pink](pink.md) - Pink colormap array.
5254
- [plot](plot.md) - Linear 2-D plot.
@@ -67,6 +69,7 @@ graphics functions
6769
- [text](text.md) - creates text descriptions to data points.
6870
- [title](title.md) - Add title.
6971
- [turbo](turbo.md) - Turbo colormap array.
72+
- [validatecolor](validatecolor.md) - Validate color values.
7073
- [view](view.md) - Camera line of sigh.
7174
- [viridis](viridis.md) - Viridis colormap array.
7275
- [white](white.md) - white colormap array.

en/graphics/SUMMARY.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
- [graphics](README.md)
2+
- [ancestor](ancestor.md)
23
- [autumn](autumn.md)
34
- [axes](axes.md)
45
- [axis](axis.md)
@@ -40,6 +41,7 @@
4041
- [meshz](meshz.md)
4142
- [newplot](newplot.md)
4243
- [parula](parula.md)
44+
- [patch](patch.md)
4345
- [pcolor](pcolor.md)
4446
- [pink](pink.md)
4547
- [plot](plot.md)
@@ -60,6 +62,7 @@
6062
- [text](text.md)
6163
- [title](title.md)
6264
- [turbo](turbo.md)
65+
- [validatecolor](validatecolor.md)
6366
- [view](view.md)
6467
- [viridis](viridis.md)
6568
- [white](white.md)

en/graphics/ancestor.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# ancestor
2+
3+
Ancestor of graphics object.
4+
5+
## Syntax
6+
7+
- p = ancestor(h, type)
8+
- p = ancestor(h, type, 'toplevel')
9+
10+
## Input argument
11+
12+
- h - graphics object
13+
- type - a row vector character or cell of strings:
14+
- 'toplevel' - a row vector character: return the highest parent in the object hierarchy that matches the condition.
15+
16+
## Output argument
17+
18+
- p - a graphics object or []
19+
20+
## Description
21+
22+
<p><b>ancestor</b> returns the handle of the specified object's ancestor of a given type.</p>
23+
24+
## Example
25+
26+
```matlab
27+
f = figure();
28+
ax = gca();
29+
s = surf(peaks);
30+
AX = ancestor(s, 'axes')
31+
F = ancestor(s, 'figure')
32+
R = ancestor(s, 'root')
33+
```
34+
35+
## See also
36+
37+
[gcf](gcf.md).
38+
39+
## History
40+
41+
| Version | Description |
42+
| ------- | --------------- |
43+
| 1.0.0 | initial version |
44+
45+
## Author
46+
47+
Allan CORNET

en/graphics/axes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Create cartesian axes.
4343
<p><b>CameraViewAngleMode</b> Selection mode for CameraViewAngle: 'manual' or 'auto' (default).</p>
4444
<p><b>Children</b> Array of graphics objects: A vector containing graphics objects to children of the current axis.</p>
4545
<p><b>Clipping</b> Clipping of objects to axes limits: 'on' (default) or 'off'.</p>
46-
<p><b>Color</b> Background color for the axes: RGB triplet or string color.</p>
46+
<p><b>Color</b> Background color for the axes: RGB triplet, string color or hexadecimal color code.</p>
4747
<p><b>ColorOrder</b> Color order: three-column matrix of RGB triplets.</p>
4848
<p><b>ColorOrderIndex</b>Color order index: positive integer value, specifies the next color used.</p>
4949
<p><b>DataAspectRatio</b> Relative length of data units: vector [x, y, z].</p>

en/graphics/figure.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,16 @@ Creates an figure window.
3030
<p/>
3131
<p><b>AlphaMap</b>: Transparency map for Axes content.</p>
3232
<p><b>Children</b>: Children of figure: empty array (default) or 1-D array of objects.</p>
33-
<p><b>Color</b>: Background color [R, G, B] or string (example: 'blue').</p>
33+
<p><b>Color</b>: Background color [R, G, B] or string (example: 'blue') or hexadecimal color code ('#FFAA00').</p>
3434
<p><b>Colormap</b>: Color map for axes content of figure: m-by-3 array of RGB triplets, parula (default).</p>
3535
<p><b>CurrentAxes</b>: Target axes in current figure: Axes object.</p>
3636
<p><b>Name</b>: Name (default '').</p>
3737
<p><b>NextPlot</b>: Directive on how to add next plot: 'new', 'replace', 'replacechildren' or 'add' (default).</p>
3838
<p><b>Number</b>: Figure Number.</p>
3939
<p><b>NumberTitle</b>: Use number title: 'off' or 'on' (default).</p>
4040
<p><b>Parent</b>: Figure parent: root graphics object.</p>
41-
<p><b>Position</b>: Location and size of drawable area.</p>
41+
<p><b>Position</b>: Location and size of drawable area: [left, bottom, width, height]</p>
42+
<p>'width' and 'height' define the size of the window. 'left' and 'bottom' define the position of the first addressable pixel in the lower left corner of the window</p>
4243
<p><b>Tag</b>: Object identifier: string scalar, character vector, '' (default).</p>
4344
<p><b>Type</b>: Type 'figure'.</p>
4445
<p><b>UserData</b>: User data: array or [] (default).</p>

en/graphics/image.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ image();
6767

6868
## See also
6969

70-
[imagesc](imagesc.md), [colormap](colormap.html).
70+
[imagesc](imagesc.md), [colormap](colormap.md).
7171

7272
## History
7373

en/graphics/imagesc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ colormap(gray)
6868

6969
## See also
7070

71-
[image](image.md), [colormap](colormap.html).
71+
[image](image.md), [colormap](colormap.md).
7272

7373
## History
7474

0 commit comments

Comments
 (0)