{"id":27143403,"url":"https://github.com/damianfral/plotdsl","last_synced_at":"2025-04-08T08:34:22.000Z","repository":{"id":21761284,"uuid":"25083366","full_name":"damianfral/PlotDSL","owner":"damianfral","description":"An experiment to play with the free monad and build a DSL for plotting.","archived":false,"fork":false,"pushed_at":"2025-02-01T18:27:16.000Z","size":43,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T19:26:17.277Z","etag":null,"topics":["chart","free-monad","haskell","plot"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/damianfral.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-10-11T15:09:01.000Z","updated_at":"2025-02-01T18:27:20.000Z","dependencies_parsed_at":"2024-01-22T21:16:27.928Z","dependency_job_id":"651bf251-2833-41d9-b01b-7712929bc9b4","html_url":"https://github.com/damianfral/PlotDSL","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damianfral%2FPlotDSL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damianfral%2FPlotDSL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damianfral%2FPlotDSL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damianfral%2FPlotDSL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/damianfral","download_url":"https://codeload.github.com/damianfral/PlotDSL/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247805273,"owners_count":20999144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chart","free-monad","haskell","plot"],"created_at":"2025-04-08T08:34:21.419Z","updated_at":"2025-04-08T08:34:21.981Z","avatar_url":"https://github.com/damianfral.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"::\n\n    l1 = do\n        name \"new data\"\n        color Red\n        smooth Sbezier\n        style Points\n        values [(0,2),(1,5),(2,4),(3,4),(4,3),(5,1)]\n\n    l2 = do\n        name \"old data\"\n        color Blue\n        style Linespoints\n        values $ zip [0..] $ [3,2,7,3,5,2]\n\n    plot1 = do\n        title \"Free monad test\"\n        scale $ Logscale Y 2.0\n        plot l1\n        plot l2\n        plot $ do\n            name \"other data\"\n            style Lines\n            smooth Csplines\n            color Green\n            values $ zip [0..] [1,2,5,3,9,1]\n\n    wxtplot plot1\n\n.. image:: ./img/ex1.png\n\n\n::\n\n    ghci\u003e let vs = zip [0..] [1,2,3,4,3,2,1,0]\n    ghci\u003e dumbplot $ plot (name \"example data\" \u003e\u003e smooth Bezier \u003e\u003e values vs)\n\n\n\n        4 ++--------+---------+---------+--------+---------+---------+--------++\n          +         +         +         +        +         example data ****** +\n      3.5 ++                                                                  ++\n          |                                                                    |\n          |                                                                    |\n        3 ++                    ***************                               ++\n          |                 *****              ****                            |\n      2.5 ++             ***                      ****                        ++\n          |            ***                            ***                      |\n        2 ++        ***                                  **                   ++\n          |       ***                                      ***                 |\n          |     ***                                           **               |\n      1.5 ++  ***                                               **            ++\n          | **                                                    **           |\n        1 **                                                        **        ++\n          |                                                           **       |\n          |                                                             **     |\n      0.5 ++                                                              *** ++\n          +         +         +         +        +         +         +      ***+\n        0 ++--------+---------+---------+--------+---------+---------+--------**\n          0         1         2         3        4         5         6         7\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamianfral%2Fplotdsl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdamianfral%2Fplotdsl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamianfral%2Fplotdsl/lists"}