Skip to content

Commit 03cf396

Browse files
committed
Small documentation improvements
1 parent 4044a82 commit 03cf396

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

source/ggplotd/aes.d

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,8 @@ unittest
553553
// Test whether type/ordering is consistent
554554
// Given enough benefit we can break this, but we'll have to adapt plotcli to match,
555555
// which to be fair is relatively straightforward
556-
static assert( is(Tuple!(string, "colour", double, "size", double, "angle", double, "alpha", bool, "mask", double, "fill", double, "x", double, "y", string, "label") == typeof(merged) ) );
556+
static assert( is(Tuple!(string, "colour", double, "size", double, "angle", double, "alpha",
557+
bool, "mask", double, "fill", double, "x", double, "y", string, "label") == typeof(merged) ) );
557558
}
558559

559560
///

source/ggplotd/axes.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ struct Axis
3535
/// Offset of the axis
3636
double offset;
3737

38+
/// Show the axis or hide it
3839
bool show = true;
3940
}
4041

source/ggplotd/ggplotd.d

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,12 @@ private auto drawGeom( in Geom geom, ref cairo.Surface surface,
123123
/// Specify margins in number of pixels
124124
struct Margins
125125
{
126+
/// Create new Margins object based on old one
126127
this(in Margins copy) {
127128
this(copy.left, copy.right, copy.bottom, copy.top);
128129
}
129130

131+
/// Create new Margins object based on specified sizes
130132
this(in size_t l, in size_t r, in size_t b, in size_t t) {
131133
left = l;
132134
right = r;

source/ggplotd/legend.d

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ private struct Legend
1515
Create a legend using a continuous scale
1616
1717
Params:
18-
width Optional width in pixels
19-
height Optional height in pixels
18+
width = Optional width in pixels
19+
height = Optional height in pixels
2020
+/
2121
auto continuousLegend(int width = 80, int height = 70)
2222
{
@@ -27,8 +27,8 @@ auto continuousLegend(int width = 80, int height = 70)
2727
Create a legend using a discrete scale
2828
2929
Params:
30-
width Optional width in pixels
31-
height Optional height in pixels
30+
width = Optional width in pixels
31+
height = Optional height in pixels
3232
+/
3333
auto discreteLegend(int width = 80, int height = 70)
3434
{

0 commit comments

Comments
 (0)