367 Commits

Author SHA1 Message Date
Matthias Bisping
363d04ce5d Formatting refactoring_44 2023-02-28 14:03:02 +01:00
Matthias Bisping
510b39b537 Refactoring
Gets rid of `recursed` flag.
refactoring_43
2023-02-28 13:54:21 +01:00
Matthias Bisping
223d3e6ed0 Refactoring
- Add visitor support to content rectangle
- Refactor box unpacking to happen by applying visitor pattern
refactoring_42
2023-02-28 13:42:32 +01:00
Matthias Bisping
9efa37ae87 Add fallback for when formula generation fails refactoring_41 2023-02-15 20:16:16 +01:00
Matthias Bisping
f9019d6625 Misc fixes refactoring_40 2023-02-15 19:50:14 +01:00
Matthias Bisping
66c65ce900 Integrate generation of structural formulas as plots refactoring_39 2023-02-15 19:31:00 +01:00
Matthias Bisping
0e7791394f Refactoring: Rename 2023-02-15 18:52:57 +01:00
Matthias Bisping
0f6e87b8a6 Refactoring
Move DVC fixture into data fixture module
2023-02-15 10:42:02 +01:00
Matthias Bisping
f12ef4b8ed stop tracking test/data 2023-02-15 10:17:26 +01:00
Matthias Bisping
7360226e98 Add random heatmap logic 2023-02-14 16:37:58 +01:00
Matthias Bisping
43688d0f0b Add filtering of interior tables in cell yielding
Interior tables are only an implementaton detail and should not produce
target boxes. Instead now only their cells are yielded.
2023-02-14 16:19:10 +01:00
Matthias Bisping
effc69c42f Implement recursive child box (e.g. table cell) passthrough 2023-02-14 13:42:19 +01:00
Matthias Bisping
0be5849df1 Remove unused fixture parameters 2023-02-14 10:13:19 +01:00
Matthias Bisping
6a7cff5bf5 Remove superfluous docstring 2023-02-14 10:12:01 +01:00
Matthias Bisping
fc0f19c5f1 Formatting 2023-02-14 10:09:46 +01:00
Matthias Bisping
fdbc49ccba Remove obsolete import 2023-02-14 10:07:45 +01:00
Matthias Bisping
61371153f6 Default to random font instead of monospace default font in font picking function 2023-02-14 10:07:18 +01:00
Matthias Bisping
86bd96db67 Remove line number in front of drawn text lines 2023-02-13 18:48:29 +01:00
Matthias Bisping
46146cc886 Change default value of number of sentences to generate 2023-02-13 18:44:55 +01:00
Matthias Bisping
be0c643f75 Fix (sort of) words crossing right text box edge 2023-02-13 18:44:10 +01:00
Matthias Bisping
4ec7cb8d7b Fix drawing of lines beyond text box
Also:
	- Extend kwargs for logging decroators
	- Better line wrapping
2023-02-13 18:43:01 +01:00
Matthias Bisping
dcdfe03f43 Replace logger import 2023-02-13 17:22:45 +01:00
Matthias Bisping
77c86078eb Fix kwargs bug in font picking logic 2023-02-13 17:22:23 +01:00
Matthias Bisping
e952d19c68 Apply log decorator 2023-02-13 17:22:01 +01:00
Matthias Bisping
2bcac91dea Add scalene 2023-02-13 17:21:45 +01:00
Matthias Bisping
7facedb38a Add logging utils 2023-02-13 17:21:37 +01:00
Matthias Bisping
3113d5cb5d Refactoring
Squashed commit of the following:

commit e5832a17356cebd43846c0542ce595bba5a8cdda
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Mon Feb 13 14:08:17 2023 +0100

    reduce pytest parameter combinatons

commit a1e6c9e553545ed1fc4c017e67dddaa98fc2a1c9
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 18:56:16 2023 +0100

    clear color map cache per pytest parameter combination

commit 21a9db25cdb55b967c664f5d129a9ac35aa1da0f
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 18:38:52 2023 +0100

    Remove obsolete line

commit 90c367cc325dd3a4d3b8f7f37e06a79c30207867
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 18:38:05 2023 +0100

    Refactoring: Move

commit 42d285e35b82ba0f36835eff6ff70c50bd80d20c
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 18:33:44 2023 +0100

    Refactoring: Move

    Move content generator into its own module

commit ddc92461d7442e08921408707ada6963f555f708
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 18:29:59 2023 +0100

    Refactoring: Move

    Move remaining segment generation functions into segments module

commit d2cb78d38f47a8c705a82dd725e24c0540a29710
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 18:27:26 2023 +0100

    Refactoring: Move

    Move zipmap and evert_nth into utils module

commit 9c401a977ce0749463cb2af509f412007f37a084
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 18:26:01 2023 +0100

    Refactoring: Move

    Move rectangle shrinking logic into new morphing module

commit b77951d4feb1e5dacdb32f0d36a399f6f94b2293
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 18:22:15 2023 +0100

    Refactoring: Move

    Move segment generation functions into their own module

commit c7b224a98a355f93653a0d576a10fbd2507ed1d8
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 18:14:54 2023 +0100

    Refactoring: Move

    Move cell class into its own module

commit f0072b0852f34f0448d467fc4993eee3a23a6c5b
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 18:12:18 2023 +0100

    Refactoring: Move

    Move table generation related code into new table module

commit 9fd87aff8ea69404959056b3d58c7f8856527c83
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 18:07:36 2023 +0100

    Refactoring: Move

    - Move random plot into its own module
    - Move geometric predicates into their own module

commit 6728642a4fc07ec9c47db99efe12981c18f95ee5
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 17:59:54 2023 +0100

    Refactoring: Move

    Mode random helper functions

commit cc86a79ac7bc47e5ddb68e5c95327eebc97041d9
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 17:33:51 2023 +0100

    Refactoring: Move

    Move text block generator module into text module

commit 160d5b3473d7e4f6f6dbb8fcf51cf554d6b54543
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 17:29:29 2023 +0100

    Remove unused code

commit 7b2f921472bb47b5c5d7848393ae471664eab583
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 17:28:17 2023 +0100

    Refactoring: Move

    Move text block generators into their own module

commit e258df899f4be39beec4a0bfc01eaea105218adb
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 17:24:54 2023 +0100

    Refactoring: Move

    Move text block into its own module

commit cef97b33f920488857c308e6ebcbc5a309de4b20
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 17:20:30 2023 +0100

    Refactoring: Move

    Move page partitioners into partitioner module

commit a54ccb2fdf44595720718fef44d5d3b1b8cbfe0a
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 17:15:40 2023 +0100

    Refactoring: Move

    Move text generation funtions into their own module

commit 1de938f2faa50cb805d7ebea3075c1d6d969d254
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 17:07:33 2023 +0100

    Refactoring: Move

    Move font related functions into font module

commit de9b3bad93d91b2d1820b59403fc357e243238e6
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 17:05:47 2023 +0100

    Refactoring: Move

    Move font picker into new font module

commit 9480d58a8a77b3feb7206cb1b7ac5c8a25516b39
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 16:59:31 2023 +0100

    Refactoring: Move

    Move line formatters into their own module

commit cc0094d3f73b258a0b89353981529e7fa6978b53
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 16:54:08 2023 +0100

    Refactoring: Move

    Move random content rectangle into its own module

commit 93a52080df8f5aa39b3b29f2c9a8dcbc8d72ad9d
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 16:52:57 2023 +0100

    Remove unused code

commit 4ec3429dec932cadd828376610950b8ad84a51f4
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 16:51:03 2023 +0100

    Refactoring: Move

    Move page partitioner into its own module

commit bdcb2f1bef36357ea048c4f00b9dccfa25b13bd9
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 16:42:55 2023 +0100

    Refactoring: Move

commit 845d1691949dcba049737af29fcee735825ecb8f
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 16:39:39 2023 +0100

    Refactoring

commit 56c10490b965ccf3ca81aa9ba0403d9068871688
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 16:36:21 2023 +0100

    Refactoring

commit 740a9cb3c25710a46452fa28dbef011daa03d6ed
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 16:33:32 2023 +0100

    Refactoring

commit b3cf3e44548c71e7eff90e94ce8ce671a0d8f343
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 16:29:03 2023 +0100

    Refactoring

    Add fixture for page partitioner

commit 2fb450943e74d0a2a49ca0e20c9507d0230e4373
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 16:25:50 2023 +0100

    Refactoring: Move

commit fd76933b5ac1fbab1b508ef1f3f199d04189cf81
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 16:16:16 2023 +0100

    Refactoring: Move

    Move image operations such as blurring into their own module.

commit 809590054315266286c75fb0ef2f81b506aaf20c
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 16:10:48 2023 +0100

    Fix effectless bug

commit d42f053c81105e3144fcc54a7c6e924c777b3665
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 13:22:16 2023 +0100

    Refactoring: Re-order

commit 04a617b9df0ee62e73f87508c8b09c4d3817a6e3
Author: Matthias Bisping <matthias.bisping@axbit.com>
Date:   Wed Feb 1 13:19:25 2023 +0100

    Refactoring

    Move content rectangle base class
2023-02-13 14:12:34 +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