GitXplorerGitXplorer
g

vzlog

public
3 stars
0 forks
1 issues

Commits

List of commits on branch master.
Unverified
2f15401f271a6223b20d54babc6d3d9ec61daca7

Update selections to tuples (to avoid deprecation warning)

ggustavla committed 5 years ago
Unverified
0e0b48d31297edc4e6d764bd93144cfc4ee3b1b2

Started 0.1.9

ggustavla committed 9 years ago
Unverified
28f0f64f3ad70a1e87b48b99deaa2d4e14618585

REL: 0.1.8

ggustavla committed 9 years ago
Unverified
4e0989aca49a53f9802c702a56043eff977cf16d

Changed default cmap to RdBu_r for vsym=True

ggustavla committed 9 years ago
Unverified
86a861e5353da198db89084db7f532612dfd1f26

Added tabs

ggustavla committed 9 years ago
Unverified
15544784dca563cd42f4554ff94ea4f1d3bb49f2

Added pil_image function to grids

ggustavla committed 9 years ago

README

The README file for this repository.

vzlog

Tool for logging rich content to an HTML file. It has two main advantages over interactive logging:

  • You can run experiments with loads of output, without having to be halted by an interactive plot. If you solve this by dumping plots to individual images, you might want to try vzlog instead, since it can seamlessly integrate text and images.
  • If you often work remotely from a computer with a public HTML directory (such as a University account), you can plot directly to that directory. VzLog can in that case make sure the files have public viewing permissions.

Installation

::

pip install vzlog

Documentation |doc|

Features

  • Logs rich content data, such as plots and images, to an HTML file.
  • Works with any plotting library that can save to file (e.g. matplotlib).
  • Ability to explicitly set file permissions. This is useful if you are using this on a server with a restrictive umask, but you are plotting to a public HTML folder. No more clunky X redirection to do remote plotting.

Example

Apart from commands that print text, the key command here is vz.impath, which returns an image path. The path is at the same time added to the log output:

.. code:: python

import vzlog

vz = vzlog.VzLog('mylog')
vz.title('Plots')
vz.section('Silly plot')

x = [1, 2, 3, 1, 2, 3]
vz.log('x =', x)

# Plot directly to the vzlog file
import vzlog.pyplot as plt

plt.figure(figsize=(4, 4))
plt.plot(x)
plt.savefig(vz.impath('svg'))

.. |doc| image:: https://readthedocs.org/projects/vzlog/badge/?version=latest :target: https://readthedocs.org/projects/vzlog/?badge=latest :alt: Documentation Status