Comments (1)
After loading and plotting your profile using "print figure", export this as a python script using the button "write script". In the script you just exported, replace "writeProfile" with "showProfile" and delete the figure filename and the dpi value. For example, if the line was
mygpr.writeProfile('C:\mydirectory\myfigure.pdf', color='gray', contrast=1, yrng=[0,48], xrng=[0,20.8], dpi=600)
it should now be
mygpr.showProfile(color='gray', contrast=1, yrng=[0,48], xrng=[0,20.8])
of course you can also adjust the contrast, color scheme, x and y range.
You can now change any aspect of the figure using the power of maplotlib:
On the line after the "mygpr.showProfile" command, add
import matplotlib.pyplot as plt
See https://matplotlib.org/stable/api/axes_api.html for all the things you can now change.
For example:
import matplotlib.pyplot as plt
plt.gca().set_xlabel('my new x label')
plt.show()
changes the x label to "my new x label".
You can turn your figure into a pdf by replacing plt.show()
with
plt.savefig('myfigname.pdf')
from gprpy.
Related Issues (20)
- Align traces HOT 3
- Kill traces functionality HOT 1
- import .dt files from IDS Aladdin HOT 5
- Install Issue
- Not an Issue Just a Question HOT 1
- .dzt and .gpr file open HOT 3
- What is the procedure for making 3D surfaces? HOT 4
- No module named gprMax HOT 1
- MALA RD7 files HOT 6
- GSSI Radargrams X axis incorrect HOT 1
- SSL Version Error on Installation HOT 2
- I am asking for Mala GPR 3d grid modelling using Rd6 data
- Sensors and Software .gpz file HOT 1
- makeDataCube HOT 1
- Output file format HOT 2
- Empty plot after import HOT 1
- import data `.gpr` file error HOT 1
- Use GPRPy to plot from script?
- x-axis interval issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gprpy.