Comments (3)
Ok, this is embarrassing: I just had a local y variable somewhere in the middle, shadowing the module-wide parameter Y. Sorry for bothering you for such a naive error on my part and thanks for your time!
from pyplot-fortran.
I think you need to show me a full compilable version of the code that produces these errors. You've got something else wrong that I'm not seeing here. Maybe some uninitialized variables or something like that.
If I construct the following example based on the information I do have, I don't see these problems:
program color_test
use pyplot_module, only : pyplot, wp => pyplot_wp
implicit none
type(pyplot) :: plt !! pytplot handler
integer :: istat
real(wp), parameter :: F(3) = [0.4510d0, 0.3098d0, 0.5882d0] ! Fortran-lang color
real(wp), parameter :: Y(3) = [0.9608d0, 0.8157d0, 0.0118d0] ! Yellow
real(wp),dimension(3),parameter :: Ax = [1,2,3]
real(wp),dimension(3),parameter :: Ay = [1,2,3]
real(wp),dimension(3),parameter :: Bx = [1,2,3]
real(wp),dimension(3),parameter :: By = [4,5,6]
call plt%initialize(figsize=[20,10],title='color test')
call plt%add_plot(Ax,Ay,label='',linestyle='o',markersize=5,color=F)
call plt%add_plot(Bx,By,label='',linestyle='o',markersize=5,color=Y)
call plt%savefig('color_test.png', pyfile='color_test.py',istat=istat)
end program color_test
from pyplot-fortran.
You're right, your minimal test case works properly in my project too! There has to be something subtle indeed. I'll now proceed to carefully bend your program towards my actual use case until it breaks, and then we can discuss. Thanks for the prompt!
from pyplot-fortran.
Related Issues (20)
- str variable cannot hold big data set HOT 5
- pyplot-fortran on Raspberry Pi
- Use OO interface HOT 3
- Fortran lexer in ed?
- Add plot_surface
- useOffset
- Raw string literals in labels and titles HOT 4
- dpi
- travis-ci seems to be broken HOT 1
- Calling gca() with keyword arguments was deprecated in Matplotlib 3.4
- Error: Missing actual argument for argument βistatβ
- Add option to specify the real kind
- Visual Studio 2019 HOT 4
- About 3d plot and meshgrid HOT 1
- Request for wireframe
- checking for python3 HOT 1
- add topics
- ValueError: 'xerr' must not contain negative values HOT 2
- question of debugging 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 pyplot-fortran.