Ptit_Bleu
2008-Jul-01 15:49 UTC
[R] how to automatically maximize the graph window (under XP) ?
Hello, I'm trying to produce graphs automatically from data stored in database. Before saving the graphs, I would like to maximize the size of the graphs. The best would be to directly open maximized windows with x11() but up to now I failed doing it. I tried different widths and heighs but I never managed to obtain a full screen window. Is there a command to do it ? Thanks in advance, Ptit Bleu. PS : I'm under XP -- View this message in context: http://www.nabble.com/how-to-automatically-maximize-the-graph-window-%28under-XP%29---tp18219242p18219242.html Sent from the R help mailing list archive at Nabble.com.
Leandro Marino
2008-Jul-01 16:47 UTC
[R] RES: how to automatically maximize the graph window (under XP) ?
Hi, you can use the jpeg(), pdf(), bmp() functions. In this function you can determinate the size of the graph, background color, quality of the image. Leandro Marino -----Mensagem original----- De: r-help-bounces em r-project.org [mailto:r-help-bounces em r-project.org]Em nome de Ptit_Bleu Enviada em: terca-feira, 1 de julho de 2008 12:50 Para: r-help em r-project.org Assunto: [R] how to automatically maximize the graph window (under XP) ? Hello, I'm trying to produce graphs automatically from data stored in database. Before saving the graphs, I would like to maximize the size of the graphs. The best would be to directly open maximized windows with x11() but up to now I failed doing it. I tried different widths and heighs but I never managed to obtain a full screen window. Is there a command to do it ? Thanks in advance, Ptit Bleu. PS : I'm under XP -- View this message in context: http://www.nabble.com/how-to-automatically-maximize-the-graph-window-%28unde r-XP%29---tp18219242p18219242.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help em r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
pieterprovoost at gmail.com
2008-Dec-04 13:51 UTC
[R] how to automatically maximize the graph window (under XP) ?
Hi, If you have Python running on your system you could create this script (graphics.py): import win32api import win32con import win32gui def windowEnumerationHandler(hwnd, windowlist): windowlist.append((hwnd, win32gui.GetWindowText(hwnd))) mywindows = [] win32gui.EnumWindows(windowEnumerationHandler, mywindows) for hwnd, windowtext in mywindows: if windowtext.startswith('R Graphics'): win32gui.ShowWindow(hwnd, win32con.SW_MAXIMIZE) Then adds this to your R code: system("python graphics.py") -- This message was sent on behalf of pieterprovoost at gmail.com at openSubscriber.com http://www.opensubscriber.com/message/r-help at r-project.org/9516326.html