{"id":32152007,"url":"https://github.com/lnicastro/gmodelfitviewer.jl","last_synced_at":"2026-02-21T15:02:28.872Z","repository":{"id":41068299,"uuid":"303970433","full_name":"lnicastro/GModelFitViewer.jl","owner":"lnicastro","description":"GModelFitViewer - web viewer for the GModelFit produced results","archived":false,"fork":false,"pushed_at":"2026-02-05T00:11:08.000Z","size":2790,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-05T12:28:33.605Z","etag":null,"topics":["data-model","fit","webtool"],"latest_commit_sha":null,"homepage":"https://gcalderone.github.io/GModelFit.jl/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lnicastro.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-10-14T09:47:43.000Z","updated_at":"2026-02-05T00:11:12.000Z","dependencies_parsed_at":"2023-11-15T17:27:51.633Z","dependency_job_id":"1ea44b8d-e7ac-4ff0-b501-562b89f1d04b","html_url":"https://github.com/lnicastro/GModelFitViewer.jl","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/lnicastro/GModelFitViewer.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnicastro%2FGModelFitViewer.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnicastro%2FGModelFitViewer.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnicastro%2FGModelFitViewer.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnicastro%2FGModelFitViewer.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lnicastro","download_url":"https://codeload.github.com/lnicastro/GModelFitViewer.jl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnicastro%2FGModelFitViewer.jl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29684075,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T14:31:22.911Z","status":"ssl_error","status_checked_at":"2026-02-21T14:31:22.570Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["data-model","fit","webtool"],"created_at":"2025-10-21T10:58:44.145Z","updated_at":"2026-02-21T15:02:28.867Z","avatar_url":"https://github.com/lnicastro.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GModelFitViewer\n\nThe **GModelFitViewer.jl** package allows to visualize 1D [**GModelFit**](https://gcalderone.github.io/GModelFit.jl) objects in a HTML page.  Specifically, it allows to display a plot of the best fit model (along with all its component) and of the empirical data, as well as the logs reported in the Julia REPL when `show`ing the objects.\n\nThe most relevant functions are:\n- `export_html()`: writes an HTML page containing the above mentioned contents;\n- `viewer()`: writes an HTML page and displays it using the default browser;\n\nBoth functions accepts the same arguments:\n- a `ModelSnapshot` or a `Vector{ModelSnapshot}` object;\n- a `FitSummary` object;\n- a `Measures` or a `Vector{Measures}` object;\n\nThe file name for the output file can be provided as first argument to `export_html()` or via the `filename=` keyword to the `viewer()` function.  If the latter keyword is not used the file will stored in the `tempdir()` directory.\n\nBesides the above arguments, a number of optional keywords may be provided to customize the plot:\n- `title`: plot title;\n- `xlabel`: label for X axis;\n- `ylabel`: label for Y axis;\n- `xrange`: 2-element vector specifying the range for the X axis;\n- `yrange`: 2-element vector specifying the range for the Y axis;\n- `xscale`: numerical global scale factor for the X axis;\n- `yscale`: numerical global scale factor for the Y axis;\n- `xunit`: units for the X axis (as a string);\n- `yunit`: units for the Y axis (as a string);\n\n**IMPORTANT NOTE**: the keywords name may be abbreviated as long as the name in unambiguous. E.g., you may use `xr` in place of `xrange`.\n\n\n\n## Example\n\nCreate a **GModelFit.jl** model, generate a mock dataset and fit:\n```julia\nusing GModelFit, GModelFitViewer\nmodel = Model(:bkg =\u003e GModelFit.OffsetSlope(1, 1, 0.1),\n              :l1 =\u003e GModelFit.Gaussian(1, 2, 0.2),\n              :l2 =\u003e GModelFit.Gaussian(1, 3, 0.4),\n              :main =\u003e SumReducer(:bkg, :l1, :l2))\ndom = Domain(0:0.01:5)\ndata = GModelFit.mock(Measures, model, dom)\nbestfit, fsumm = fit(model, data)\n```\n\nGenerate and display an HTML page vith:\n```julia\nviewer(bestfit, fsumm, data);\n```\n\nYou may customize the plot using the above mentioned keywords, e.g.\n```julia\nviewer(bestfit, fsumm, data,\n       title=\"My title\", xr=[0.5, 4.5])\n```\n\nTo save the HTML page in `myfile.html` (without opening it in the web browser):\n```julia\nexport_html(\"myfile.html\", bestfit, fsumm, data)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnicastro%2Fgmodelfitviewer.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flnicastro%2Fgmodelfitviewer.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnicastro%2Fgmodelfitviewer.jl/lists"}