All Projects → paulgb → Penkit

paulgb / Penkit

Licence: mit
Tools for pen plotting in Python

Projects that are alternatives of or similar to Penkit

Deep Learning Interview
深度学习面试汇总,基本知识点的查漏补缺
Stars: ✭ 106 (-0.93%)
Mutual labels:  jupyter-notebook
Caffe Excitationbp
Implementation of Excitation Backprop in Caffe
Stars: ✭ 106 (-0.93%)
Mutual labels:  jupyter-notebook
Tensorflow2.0
学习笔记代码
Stars: ✭ 107 (+0%)
Mutual labels:  jupyter-notebook
Sklearn tutorial
Materials for my scikit-learn tutorial
Stars: ✭ 1,521 (+1321.5%)
Mutual labels:  jupyter-notebook
Are You Fake News
Bias detection in the news. Back and front end for areyoufakenews.com
Stars: ✭ 105 (-1.87%)
Mutual labels:  jupyter-notebook
Cnn Yelp Challenge 2016 Sentiment Classification
IPython Notebook for training a word-level Convolutional Neural Network model for sentiment classification task on Yelp-Challenge-2016 review dataset.
Stars: ✭ 106 (-0.93%)
Mutual labels:  jupyter-notebook
Research Methods For Data Science With Python
Research Methods for Data Science with Python
Stars: ✭ 106 (-0.93%)
Mutual labels:  jupyter-notebook
Bilibli notes2
攻城狮之家B站视频课程课件合集2,1号仓库https://github.com/JokerJohn/bilibili_notes.git
Stars: ✭ 107 (+0%)
Mutual labels:  jupyter-notebook
Jupyterworkflow
Reproducible Data Analysis Workflow in Jupyter
Stars: ✭ 106 (-0.93%)
Mutual labels:  jupyter-notebook
Reinforcement learning
Reinforcement Learning research
Stars: ✭ 107 (+0%)
Mutual labels:  jupyter-notebook
Ml Course Hse
Машинное обучение на ФКН ВШЭ
Stars: ✭ 1,800 (+1582.24%)
Mutual labels:  jupyter-notebook
Dog Breeds Classification
Set of scripts and data for reproducing dog breed classification model training, analysis, and inference.
Stars: ✭ 105 (-1.87%)
Mutual labels:  jupyter-notebook
Cs570
Code for CS570, Essentials of Data Science
Stars: ✭ 106 (-0.93%)
Mutual labels:  jupyter-notebook
Cc6204
Material del curso de Deep Learning de la Universidad de Chile
Stars: ✭ 106 (-0.93%)
Mutual labels:  jupyter-notebook
Stylegan2 Projecting Images
Projecting images to latent space with StyleGAN2.
Stars: ✭ 102 (-4.67%)
Mutual labels:  jupyter-notebook
Stream
STREAM: Single-cell Trajectories Reconstruction, Exploration And Mapping of single-cell data
Stars: ✭ 106 (-0.93%)
Mutual labels:  jupyter-notebook
Cs224d
CS224D Assignments
Stars: ✭ 106 (-0.93%)
Mutual labels:  jupyter-notebook
Amazon Sagemaker Stock Prediction Archived
Workshop to demonstrate how to apply NN based algorithms to stock market data and forecast price movements.
Stars: ✭ 106 (-0.93%)
Mutual labels:  jupyter-notebook
Bingham Rotation Learning
A Smooth Representation of SO(3) for Deep Rotation Learning with Uncertainty.
Stars: ✭ 106 (-0.93%)
Mutual labels:  jupyter-notebook
Beymani
Hadoop, Spark and Storm based anomaly detection implementations for data quality, cyber security, fraud detection etc.
Stars: ✭ 106 (-0.93%)
Mutual labels:  jupyter-notebook

Penkit

Penkit is a library of utility functions generating pen plots <https://en.wikipedia.org/wiki/Plotter>__ from Python/numpy.

Installation

Requirements: Python 2.7 or 3.x, numpy, scipy. Preview modules require ipython or matplotlib.

# pip install penkit

Documentation

  • Download the tutorial notebooks <tutorial>_ or run them on Binder <https://mybinder.org/v2/gh/paulgb/penkit.git/master?filepath=tutorial>_
  • Module Documentation <http://penkit.readthedocs.io/en/latest/>_

Examples

Grid Surface Projection


.. code:: python

    from penkit.textures import make_grid_texture
    from penkit.textures.util import rotate_texture
    from penkit.surfaces import make_noise_surface
    from penkit.write import write_plot
    from penkit.projection import project_and_occlude_texture
    
    # create a texture
    grid_density = 68
    texture = make_grid_texture(grid_density, grid_density, 100)
    
    # rotate the texture
    texture = rotate_texture(texture, rotation=65)
    
    # create the surface
    surface = make_noise_surface(blur=28, seed=12345) * 10
    
    # project the texture onto the surface
    proj = project_and_occlude_texture(texture, surface, angle=69)
    
    # plot the result
    write_plot([proj], 'examples/grid_surface.svg')

.. image:: examples/grid_surface.svg
   :width: 400px

Hilbert Curve Surface Projection

.. code:: python

from penkit.fractal import hilbert_curve
from penkit.textures.util import fit_texture, rotate_texture
from penkit.surfaces import make_noise_surface
from penkit.projection import project_and_occlude_texture
from penkit.write import write_plot

# create a texture
texture = hilbert_curve(7)

# rotate the texture
texture = rotate_texture(texture, 30)
texture = fit_texture(texture)

# create the surface
surface = make_noise_surface(blur=30) * 5

# project the texture onto the surface
proj = project_and_occlude_texture(texture, surface, 50)

# plot the result
write_plot([proj], 'examples/hilbert_surface.svg')

.. image:: examples/hilbert_surface.svg :width: 400px


.. image:: https://travis-ci.org/paulgb/penkit.svg?branch=master :target: https://travis-ci.org/paulgb/penkit

.. image:: https://mybinder.org/badge.svg :target: https://mybinder.org/v2/gh/paulgb/penkit.git/master?filepath=tutorial

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].