semvec/pypi-packages huggingface dataset:
plot2svg 0.0.4
A simple plot tool to generate small SVG files
License: MIT
Requires Python: >=3.5

# plot2svg

I was using some other tools to plot and save to `.SVG` file, And I found the files are too big.  
So I make this package myself to generate SVG graphs with small file size.  

For example, this package plot a bar which is **0.6 KB**, compared to other tools plot the same bar which is **40 KB**


## install

`pip install plot2svg`

## usage

plot a bar
```python
from plot2svg import Bar

data = list(range(25))

view = Bar(width=500, height=300, color="red", data=data)
svg_context = view.get_svg_context()
print(svg_context)
view.save_svg('data_bar.svg')
```

![](/examples/data_bar.svg)

plot texts

```python
from plot2svg import Text

text = '''test
测试
换行
plot2svg is light'''

view = Text(width=500, height=300, color="red", data=text)
svg_context = view.get_svg_context()
print(svg_context)
view.save_svg('data_text.svg')
```

![](/examples/data_text.svg)
shapeObject 0.5.2
Create an objected from a shapefile with shapely compatible geometry
License: MIT
Requires Python: >=3.6


<!--ABOUT THE PROJECT -->
## About The Project
The [Pyshp](https://pypi.org/project/pyshp/1.2.10/) library allows for a pure python approach to reading in Esri 
Shapefile formatted files. This Project uses Pyshp to import these files, but then configures the objects to be 
[Shapely](https://pypi.org/project/Shapely/) style objects. 

This should make it quicker to start new projects involving shapefiles and reduce duplicating code.

All of the source code can be found at the [shapeObject github](https://github.com/sbaker-dev/Shape_object)