Conversation
|
That's an example of an improved surface plot image. |
|
An alternative: pass in all settings in a |
|
I agree, this is much needed functionality. But the As every function currently converts the |
|
I'll have a go at that at some point. However, for the moment, I'm seeing what VTK will give me in terms of graphing. It seems to be very capable - if hard to use perhaps - and does other imaging things that I'm interested in. |
|
@Bidibulke that certainly sounds interesting if you are up for it. I expect it would be very helpful to others. |
|
Since this seems like a lot of code it would be nice to get feedback from @lava to see if this is something that could be included. |
|
I began development before seeing your post @Cryoris . |
|
Hey, sorry for being a bit late to the party here. I basically agree with most of what was said, that is:
I was thinking that maybe a good path would be to take a bit of both PRs make a struct that has:
@Cryoris @Bidibulke @mdaley wdyt? |
|
Hi,
I don't have time to do any of this at the moment. And I've started
playing with VKT instead. It's only a spare time thing for me. If any of
what I've tried is useful please feel free to reuse it, although I expect
given my lack of C++ experience there are better ways of doing things...
Matt
…On Wed, Jun 17, 2020 at 6:59 PM Benno Evers ***@***.***> wrote:
Hey, sorry for being a bit late to the party here. I basically agree with
most of what was said, that is:
1. We certainly need something like this
2. Ideally, the solution would be backwards-compatible, so we can
eventually enable it for *all* functions and no working code breaks
when updating the library.
I was thinking that maybe a good path would be to take a bit of both PRs
make a struct that has:
- implicit constructor from map<string, string>
- implicit constructor from initializer_list<pair<string, string>>
- implicit constructor from, e.g., struct matplotlib::kwarg where kwarg
would have some constructor of factory function that can do all the
template magic to dispatch on the correct type etc.
@Cryoris <https://github.com/Cryoris> @Bidibulke
<https://github.com/Bidibulke> @mdaley <https://github.com/mdaley> wdyt?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#184 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGRAEOHSNSAKNCEYIIU3N3RXD76VANCNFSM4MS52FDQ>
.
|
|
Hi all, That's a good idea : having a flexible API without breaking anything. For the moment, I don't know how mix everything (specifically for the implicit constructor for |

I wanted to be able to do more with the surface plot. What I've done here is add the ability to set different types of settings - boolean, float, int, string - as the additional arguments for the surface plot. So, this allows you to do things like:
The things that can now be set I removed from being hardcoded in the code.
An example of what can now be done is:
Is it just me or is the formatting of the
matplotlibcpp.hfiles rather messed up at the moment. I didn't change this but I think it should be.Oh, and finally, I'm mainly a Java and clojure programer. All this C++ stuff is new to me, so please tell me whatever needs to be different to be more idiomatic...