Easy Visualisation of Plots
Project description
ongoing
v1.0
| v1.1
(current)
v0.1
| v0.2
eagleview
A package for greatly increasing the visualisation of datasets, in minimal lines of code.
Usage
It is advised to use `Method 1`, as the github repository is updated from time to time, it may occour that new changes are not still updated.
Method 1
- Clone the repository:
!git clone https://github.com/hexronuspi/eagleview
-
Upload the folder containing your images. If they are in a zip or any other file, extract them first.
-
Navigate to the cloned repository:
%cd eagleview
- Install the package:
!pip install .
- Use the package in your Python code:
Method2
- using pip install
!pip install eagleview
import eagleview
Input:
#v0.x
from eagleview.figshow import ImageMatrix
image_display = ImageMatrix('/content/path_to_folder_containing_images')
#v1.x
from eagleview.figshow import ImageMatrix
im = ImageMatrix('/content/path_to_folder_containing_images', '/content/path_to_file_containing_label.csv')
#only .csv extension
Output:
#v1.0
im.rand((a, b)).display_image( # a,b is the size of matrix
check_col='col_name', # replace 'col_name' with the name of column, which has image name
display_label=True, # by default this is False
display_cols=['col1', 'col2'], # replace '', to the column name which you want to print as label
display_name=True, # by default this is False
print_all=False, # by default this is True
x= , # X-coordinate of label
y= , # Y-coordinate of label
fig_size=(m, n) # by default this is set to max(image_size), maximum size of all the images which will be displayed
)
#v0.2
(ImageMatrix('/content/path_to_folder_containing_images').rand()).display_image((2,2), print_all=False, display_name=True)
# v0.1
(ImageMatrix('/content/path_to_folder_containing_images')).display_image((2,2), print_all=False)
Releases:
-
v0.1
- This will display the images in a grid with 3 columns and 2 rows, without printing the left out images. If you want to print all images, you can call
image_display.display_image((2, 3))
orimage_display.display_image((2, 3), True)
.
- This will display the images in a grid with 3 columns and 2 rows, without printing the left out images. If you want to print all images, you can call
-
v0.2
- This will display the name of the images, as their titles. In v0.1, the images were printed starting from first and consecutive until upper bound is reached, this is an optional and random option is added.
-
v1.0
- Added capability to display label with a variey of options.
-
v1.1
- Added capability to change label display and visuals with a variey of options.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
eagleview-1.1.tar.gz
(3.5 kB
view hashes)