Home > Python > Select and Crop Region of the Figure in Python

Select and Crop Region of the Figure in Python

I wanted to be able to select and crop some region of the figures in python interactively. Here’s some ways that I found quite useful. You could modify the code and adapt to your need.

* http://stackoverflow.com/questions/6136588/image-cropping-using-python
* http://stackoverflow.com/questions/6916054/how-to-crop-a-region-selected-with-mouse-click-using-python
* http://kitchingroup.cheme.cmu.edu/software/python/matplotlib/interacting-with-data-sets
* http://scienceoss.com/interactively-select-points-from-a-plot-in-matplotlib

And superisingly, matplot has the same function of ginput just as in matlab.

Advertisements
Categories: Python
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: