{"id":32135282,"url":"https://github.com/danieljprice/giza","last_synced_at":"2025-10-21T03:57:23.837Z","repository":{"id":30171787,"uuid":"123531456","full_name":"danieljprice/giza","owner":"danieljprice","description":"giza - a scientific plotting library for C/Fortran","archived":false,"fork":false,"pushed_at":"2025-06-25T14:57:09.000Z","size":2063,"stargazers_count":39,"open_issues_count":12,"forks_count":18,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-21T03:57:21.360Z","etag":null,"topics":["astronomy","astronomy-library","astrophysics","c","fortran","graphics-library","plotting","radio-astronomy","science","scientific-visualization","vector-graphics"],"latest_commit_sha":null,"homepage":"https://danieljprice.github.io/giza/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danieljprice.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-03-02T04:46:36.000Z","updated_at":"2025-10-16T09:14:19.000Z","dependencies_parsed_at":"2024-11-29T02:26:20.225Z","dependency_job_id":"c7c40f5d-3c9f-4ef6-8272-c2ca888ae796","html_url":"https://github.com/danieljprice/giza","commit_stats":{"total_commits":696,"total_committers":13,"mean_commits":53.53846153846154,"dds":0.1522988505747126,"last_synced_commit":"7e13ccead08eae1e3284acad86733f79873844f4"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/danieljprice/giza","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieljprice%2Fgiza","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieljprice%2Fgiza/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieljprice%2Fgiza/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieljprice%2Fgiza/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danieljprice","download_url":"https://codeload.github.com/danieljprice/giza/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieljprice%2Fgiza/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280200870,"owners_count":26289477,"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","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["astronomy","astronomy-library","astrophysics","c","fortran","graphics-library","plotting","radio-astronomy","science","scientific-visualization","vector-graphics"],"created_at":"2025-10-21T03:57:19.390Z","updated_at":"2025-10-21T03:57:23.831Z","avatar_url":"https://github.com/danieljprice.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"giza - a scientific plotting library for C/Fortran\n==================================================\n\nAbout\n-----\nA 2D scientific plotting library built on cairo. Provides uniform output to pdf, ps, png and X-Windows. Written in C with no dependencies (other than cairo) as a direct replacement for PGPLOT.\n\nFeatures\n--------\n- 2D plotting library\n- Output to png, ps, eps, pdf, svg and X-window\n- Interactivity via cursor calls (similar to PGCURS, PGBAND)\n- Includes PGPLOT interface that compiles replacement versions of libpgplot and libcpgplot with many backwards compatible features\n- most of PGPLOT API implemented\n- Minimal dependencies: depends only on very standard system libraries (cairo, png, X11)\n- Written in standard C with a Fortran 90/95/2003 interface\n- Compiles as a standalone library or can be incorporated into other codes\n- Interface routines handle both float and double precision input\n- Easily called from Fortran/C/C++ code\n- Originally written as a backend for SPLASH, in stable use now for more than 10 years\n\nStatus\n------\n![build](https://github.com/danieljprice/giza/workflows/build/badge.svg)\n\nInstall\n-------\nType:\n```\n./configure\nmake install\n```\nYou will need a C compiler, cairo and X11 development packages. If they are\nready to go the above should build giza using gcc,\nand \"make install\" should install under a Linux or Mac operating system.\n\nTo install in a special location (e.g. your userspace), use:\n```\n./configure --prefix=${HOME}\nmake install\n```\n\nIf you have X11 or cairo installed in a custom location, or you don't have pkg-config installed, specify the location with the following flags:\n```\n./configure X11_CFLAGS='-I/usr/X11/include' X11_LIBS='-L/usr/X11/lib -lX11'\n            CAIRO_CFLAGS='-I/usr/X11/include/cairo' CAIRO_LIBS='-L/usr/X11/lib/cairo -lcairo'\nmake install\n```\nYou can find out more configuration options using ./configure --help\n\nBasic usage (using giza directly, not via pgplot interface)\n-----------\nFor simple examples, you can try compiling some of the examples in the tests/ directory, e.g.\n```\ncd giza/tests/C/\nmake test-png\n./test-png\n%giza: test_0000.png created\n%giza: test_0001.png created\n%giza: test_0002.png created\n%giza: test_0003.png created\n%giza: test_0004.png created\n%giza: test_0005.png created\n%giza: test_0006.png created\n%giza: test_0007.png created\n%giza: test_0008.png created\n%giza: test_0009.png created\n```\nOr for a Fortran equivalent:\n```\ncd giza/tests/F90/\nmake test-2D\n./test-2D\n```\n\nPGPLOT replacement usage\n------------------------\ngiza compiles a version of libpgplot that can be used as a drop-in replacement\nfor the original PGPLOT libraries\n\nIf you want to test a program that previously used PGPLOT, then first compile\nand install giza as above (which by default will install libraries\nto /usr/local/lib). Then on a Mac you would type:\n (assuming a Mac with giza libraries installed to /usr/local/lib), just type:\n```\nexport DYLD_LIBRARY_PATH=/usr/local/lib:${DYLD_LIBRARY_PATH}\n```\nor in Linux\n```\nexport LD_LIBRARY_PATH=/usr/local/lib:${LD_LIBRARY_PATH}\n```\nthen run your PGPLOT-based program (you don't even need to recompile it).\nThat is, as long as giza's version of pgplot libraries are first in the shared\nlibrary path, they are the ones that will be used.\n\nThere are some basic examples of PGPLOT usage (mainly written for my own testing)\nin the F90 dir:\n```\ncd giza/test/F90\nmake test-pgaxis test-pgncur\n./test-pgaxis\n./test-pgncur\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieljprice%2Fgiza","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanieljprice%2Fgiza","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieljprice%2Fgiza/lists"}