351 Commits

Author SHA1 Message Date
Matthias Bisping
4ec3429dec Refactoring: Move
Move page partitioner into its own module
2023-02-01 16:51:16 +01:00
Matthias Bisping
bdcb2f1bef Refactoring: Move 2023-02-01 16:42:55 +01:00
Matthias Bisping
845d169194 Refactoring 2023-02-01 16:39:39 +01:00
Matthias Bisping
56c10490b9 Refactoring 2023-02-01 16:36:21 +01:00
Matthias Bisping
740a9cb3c2 Refactoring 2023-02-01 16:33:32 +01:00
Matthias Bisping
b3cf3e4454 Refactoring
Add fixture for page partitioner
2023-02-01 16:31:58 +01:00
Matthias Bisping
2fb450943e Refactoring: Move 2023-02-01 16:25:50 +01:00
Matthias Bisping
fd76933b5a Refactoring: Move
Move image operations such as blurring into their own module.
2023-02-01 16:16:18 +01:00
Matthias Bisping
8095900543 Fix effectless bug 2023-02-01 16:10:48 +01:00
Matthias Bisping
d42f053c81 Refactoring: Re-order 2023-02-01 13:22:42 +01:00
Matthias Bisping
04a617b9df Refactoring
Move content rectangle base class
2023-02-01 13:19:29 +01:00
Matthias Bisping
ba901473fe Set alpha in box frame drawing logic 2023-02-01 13:12:53 +01:00
Matthias Bisping
e8b4467265 Remove unused code 2023-02-01 13:12:20 +01:00
Matthias Bisping
4c65d906b8 Add fixme 2023-02-01 11:53:35 +01:00
Matthias Bisping
667b4a4858 Refactoring and text cell content tweaking 2023-02-01 11:32:37 +01:00
Matthias Bisping
83e6dc3ce7 Add IPython dev dependency 2023-02-01 11:32:12 +01:00
Matthias Bisping
fb69eb7f5c Refactoring
Break up conditional tree in cell building function
2023-02-01 10:09:32 +01:00
Matthias Bisping
f98256d7e9 Fix bug in table generation
- Remove the check `elif size < Size.LARGE.value` and made it into `else`,
since it was intended to cover all cells that are larger than medium
size.

- Also disbale page number generation for now
2023-02-01 09:58:34 +01:00
Matthias Bisping
cbb3a8cc61 [WIP] Page numbers 2023-01-31 17:09:59 +01:00
Matthias Bisping
9f9face8f0 Make scatterplots more variable 2023-01-31 16:33:48 +01:00
Matthias Bisping
f2af040c5b [WIP] texture and content blendig with blend_modes module 2023-01-31 16:05:08 +01:00
Matthias Bisping
6dbe3b6fc9 Refactoring 2023-01-31 14:37:46 +01:00
Matthias Bisping
a3fece8096 Found first issue for pale colors 2023-01-31 14:16:33 +01:00
Matthias Bisping
26180373a0 Remove unused imports 2023-01-31 13:55:13 +01:00
Matthias Bisping
186b4530f0 [WIP] Make texture show through page content 2023-01-31 13:53:52 +01:00
Matthias Bisping
a1ccda4ea9 Refactoring 2023-01-30 14:11:48 +01:00
Matthias Bisping
25d35e2349 Fix bug in booktabs code 2023-01-25 20:55:19 +01:00
Matthias Bisping
daea7d2bf7 [WIP] head and bottom border (booktabs-like) for tables 2023-01-25 20:18:09 +01:00
Matthias Bisping
d5e501a05d Tweak plots 2023-01-25 19:44:54 +01:00
Matthias Bisping
d9d363834a Tweak plots and table cells
- Choice of plot depends on aspect ratio of rectanlge now and is handled
in the plot constructor

- Made pie charts more diverse

- Table cell background is no complementary color chosen against
  colormap
2023-01-25 19:13:43 +01:00
Matthias Bisping
5dc13e7137 [WIP] More table / cell edge fiddling and issue fixing
Fix: The cell width and height were rounded to int in the table
constructor. The imprecison of rounding would accumulate when stacking
cells in a row or columns leading to gaps at the bottom and right hand
edge of tables.
The rounding has now been removed and left to the cell constructor.
Cells are derived from the Rectangle class, which does the rounding
itself. This eliminates the issue with accumulated gaps in the tables.
2023-01-25 18:16:36 +01:00
Matthias Bisping
826cd3b6a9 [WIP] More table / cell edge fiddling and issue fixing 2023-01-25 17:23:30 +01:00
Matthias Bisping
4f788af35b [WIP] More table / cell edge fiddling and issue fixing
Cells now draw only inner borders and the table draws the outer border
if the layout is "closed". This avoids multiple lines around cells of
nested tables, since nested tables are now created with the layout
parameter set to "open", in which case the table does not draw its
borders.
2023-01-25 10:31:17 +01:00
Matthias Bisping
10ea584143 [WIP] More table / cell edge fiddling and issue fixing 2023-01-24 15:44:24 +01:00
Matthias Bisping
7676a8148e [WIP] More table / cell edge fiddling and issue fixing 2023-01-24 13:53:59 +01:00
Matthias Bisping
cee5e69a4b Make page generation reproducable
Tie all structural random events to a seeded random object.
2023-01-24 13:07:45 +01:00
Matthias Bisping
e715c86f8d Fix box clashes
Rewrote box generation sequence and eliminated issue with gaps /
overlapping boxes
2023-01-24 12:07:47 +01:00
Matthias Bisping
c5ba489931 Refactoring 2023-01-24 10:49:38 +01:00
Matthias Bisping
3772ca021a Refactoring
Pull base class for page partioner out of page partioner and add random
page partioner derived class.
2023-01-24 10:13:03 +01:00
Matthias Bisping
c4eeb956ca Fix incorrect font size kwarg 2023-01-24 10:12:44 +01:00
Matthias Bisping
d823ebf7c6 Refactoring
Refactor page partitioner
2023-01-24 10:00:35 +01:00
Matthias Bisping
71ffb28381 Re-add actual block generator calls back 2023-01-23 15:38:20 +01:00
Matthias Bisping
9dfbe9a142 Add different basic table layouts 2023-01-23 15:30:12 +01:00
Matthias Bisping
0eb57056ba Fix / improve table cell border drawing 2023-01-23 15:16:26 +01:00
Matthias Bisping
70802d6341 Fix error in image padding logic 2023-01-23 14:38:42 +01:00
Matthias Bisping
52776494cb Tweak font selection 2023-01-23 14:15:41 +01:00
Matthias Bisping
7d8842b4ac Refactoring & Add table captioons 2023-01-23 13:14:48 +01:00
Matthias Bisping
9e77e25afb Refactoring
Move text block generation code into its own class.
2023-01-23 12:22:42 +01:00
Matthias Bisping
b3480491be Refactoring
Move line formatting code into its own class.
2023-01-23 12:13:22 +01:00
Matthias Bisping
3d0c2396ee Remove obsolete code 2023-01-23 12:05:01 +01:00