Closed deandreee closed 5 years ago
@deandreee , - thank you for spotting this; fixed; please update and try it again.
@Kismuz thanks for a quick fix, image now renders. Unfortunately it's a bit distorted, labels on top of chart, scale numbers cut etc (see here). I tried playing with render_size/dpi
but not much luck. Any advice on this? I see that example image (here https://github.com/Kismuz/btgym/blob/master/examples/rendering_howto.ipynb) is also a bit distorted, but not as bad as mine.
@deandreee , yes indeed; it can be controlled to some degree by setting bigger render size and resolution size.I wouldn't recommend doing something other than that but one can pass full stack of backtrader options found in PlotScheme
object, see:
https://www.backtrader.com/docu/plotting/plotting.html
https://github.com/Kismuz/btgym/blob/master/btgym/rendering/renderer.py#L36
@Kismuz thanks, I tried playing with multiple params but unfortunately saw no improvements. One thing I noticed - looked like dpi was not affecting episode
but was affecting human
, for example, when I changed dpi to 30, human
image got really small but episode
stayed the same, see here. I tried debugging, but as far as I could see, dpi was passed all the way to the end (to self.cerebro.plot()
in DrawCerebro
), so not sure where the problem is.
Anyway, I think you can close this issue, since the original problem was solved. I'll probably do some more research on this later but for now I'll focus more on the basics. Just started researching RL for my trading and looks like I need to go with more barebones approach, integrating existing frameworks might be to steep learning curve, will try something like raw Gym/Tensorforce/etc.
@Kismuz first of all - really great package! Appreciate your efforts that went into this.
Actually I have got the same issue as @deandreee, even after upgrading to the latest version (deinstalled and pulled the latest version from master):
I ran your rendering_howto and got this after a finished episode:
Thanks for your help
Running environment:
Ubuntu 16.04
Files or part of package has been run:
I'm trying to run basic examples from
rendering_howto.ipynb
Expected behaviour:
Both images/modes rendered -
human
andepisode
Actual behaviour:
human
image is rendered, butepisode
is empty See hereSteps to reproduce:
Example code (basically from here - https://github.com/Kismuz/btgym/blob/master/examples/rendering_howto.ipynb)