-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow line color different from axes and grids in 3D plots #58
Comments
I've added a There was an unexpected problem, though. The axes and tick marks had the color specified by A solution is to use The axes, ticks, and grid lines are drawn by
|
This is very useful so please do submit your PR, really appreciate it. Thanks for digging into PLPLOT doc, have you tested whether "changing into |
It seems like it should not change the behavior of the other functions, but I know that I need to test it. I was planning to try creating PDFs from all of the examples in the tutorial, with and without the |
Sure, that is definitely enough imo. Many thanks Marshall 👍 Also fyi, the wiki should be publicly editable now after changing the github repo setting. |
Colors set with |
f it's OK to submit a PR with both the color changes and the addition of the optional plplot option argument for |
I definitely would love to incorporate this feature. I am currently refactoring the code in Plotplot to adapt to the new API design I mentioned before. It will take a couple of days time. So how about letting me finish that first, then you can adapt your code to the new API? It may also solve the |
Oh--great. Sure, I'll wait. |
@mars0i The API of Plot module has been redesigned. Every high-level function now has an optional If you pass in some parameter that a function does not understand, it will be ignored. I have updated the tutorial accordingly and I hope you it will help you in understanding the new design. Let me know if you notice any mistakes. https://github.com/ryanrhymes/owl/wiki/Tutorial:-How-to-Plot-in-Owl%3F The new design may require you to change your current code but should not be significant. My apologies for the inconvenience. |
Thanks Liang. Just starting to look at it. Seems like a very nice design. I don't mind having to change my code, though; I appreciate the value of rationalizing design after an early period of code growth. And it's partly my fault. :-) |
I added this feature to the new, refactored version. It wasn't hard to modify my project code for the refactored Owl, and then I decided to add in the plot draw vs. axes/grid lines color difference in one of my branches. It's in this file. The changes are in I didn't do anything similar in The change doesn't affect any of the plot examples that were in the tutorial up until a day or two ago. (Nice additions btw.) If a PR would be helpful, I'm happy to submit one, and you can make any changes you want of course. If you have a different idea for how to do this but want to just copy or rewrite a few of my lines by hand without a PR, that's fine, too, of course. You may want to do something completely different, though. (BTW I do have an example that would be nice for the tutorial, but the data is generated by a bunch of my own project code, and I think there's too much code in that that will be confusing. I need to come up with a simple way to make some fake data that will illustrate the same idea. That will probably have to wait for a couple of weeks.) |
Thanks, this doesn't require significant changes, so I just reused some of the code you provided. It is already in the master branch. |
Great--glad it was helpful. Thanks. |
For me it would be useful to have an optional
~color
argument formesh
andsurf
, like the optional argument for the 2D plotting functions, so that axes and grids can be a different color from plot lines. Maybe this makes more sense if new features are implemented for issue #57, as illustrated in this example: foo.pdf. I can submit a PR if this seems OK.The text was updated successfully, but these errors were encountered: