Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.


GrAF is a file format which allows you to save graphs, including the data and format settings.

Where does this fit compared to other formats?

There are certainly other formats for saving graphs. One on end of the spectrum, you have 'visual' mechanisms for storing the graph such as PNGs or other bitmap formats. These formats guarantee an accurate representation of your graph, including perfect representation of the styling, however it does not contain the raw data. If you want to access the data later, you'll have to visually infer what the points are.

On the other end of the spectrum, you have the GrAF format. GrAF does not guarantee that the graph will look exactly the same; fonts, line sizes, etc can vary between platforms. However, the core promise of GrAF is that the key aspects of the graph for scientific communication will be retained. The data will be saved as a list of floats in a way that's easy to access, and formatting parameters critical to the visual language of data expression such as graph limits, line types and marker selection, will all be retained. In other words, the data will be accessible, the message of the graph will be preserved, and the formatting can be easily adjusted to match your needs of the day. You can open multiple graf files from previous publications and quickly restyle them to offer a cohesive theme for a new presentation. Or you can quickly merge the data from multiple plots into one, or change the plot type to better convey your point.

(Mention how SVG sits inbetween bitmaps and GrAF; preserves formatting kinda, is editable, but loses the data.) (Mention how Pickled figs are great in Python (perfect formatting and data!) but are complex to access due to their formatting sophistication and cannot easily be read in other languages ) (Mention how MATLAB figs are similar to Pklfigs in that they have perfect formatting and store data, but once again, are not easily cross platform and so complex quickly merging files is not trivial. )

(TODO: Add a function to spit out the X and Y data as variables in ipython and/or print to screen.)

The key promise of GrAF is that it will retain the graph data in a way that's easy to access

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graf_format-0.0.0.dev4.tar.gz (40.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

graf_format-0.0.0.dev4-py3-none-any.whl (32.3 kB view details)

Uploaded Python 3

File details

Details for the file graf_format-0.0.0.dev4.tar.gz.

File metadata

  • Download URL: graf_format-0.0.0.dev4.tar.gz
  • Upload date:
  • Size: 40.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.3

File hashes

Hashes for graf_format-0.0.0.dev4.tar.gz
Algorithm Hash digest
SHA256 48df0f78a4f8f5243e9716b8e06ab094349693928991bd8c272bef2b65041ecb
MD5 98baec74dd1ddf485677c733ab5a6fb0
BLAKE2b-256 ee44c36a465c9d650fab13429e39ee7c64860712ac722b3e51f2aad55c04adf2

See more details on using hashes here.

File details

Details for the file graf_format-0.0.0.dev4-py3-none-any.whl.

File metadata

File hashes

Hashes for graf_format-0.0.0.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 fe32efb5e0698cce355e45a190bed49d5a8f6a7af1ec0ca3281786f3acec7d4c
MD5 06fc781610e7ff13985ff276d1b9f5d6
BLAKE2b-256 46a7d7059d1c97078a4d4c6281c20e8bae23d2f7ab9895c762f1f0925921be40

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.0

2 files

This release

0.0.0.dev4 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page