Home | Detailed Features | Automated Betting | Free Download | Purchase | TSM Forum | Support | | |
thestakingmachine.com Forum Index thestakingmachine.com
TSM - Forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Graph Colours

 
Post new topic   Reply to topic    thestakingmachine.com Forum Index -> Suggestions
View previous topic :: View next topic  
Author Message
MindYerBeak



Joined: 22 Jun 2007
Posts: 21
Location: Swansea Jack

PostPosted: Tue Jul 03, 2007 10:01 pm    Post subject: Graph Colours Reply with quote

What would be a nice option would be to be able to change the background colour of the graph, as well as the trendlines for the various staking plans. Some are difficult to see and you could colour your trendlines as to the most profitable to be easily seen better. I personally prefer a black background to make it easier to view.

Also the ability to thicken the lines and maximise the graph would be useful.
_________________
Mr. MindYerBeak, at your service
Back to top
View user's profile Send private message Send e-mail
DeepJoy



Joined: 20 Jun 2007
Posts: 65

PostPosted: Sun Jul 08, 2007 11:15 am    Post subject: Reply with quote

Good suggestions [if I have a lot of plans displayed I find myself peering at the colour legend trying to make out what's what].
Back to top
View user's profile Send private message
win2win



Joined: 30 Jul 2007
Posts: 7

PostPosted: Fri Aug 10, 2007 11:12 am    Post subject: Reply with quote

Not a big problem, but for the posh sods amongst us with 21" 1600x1400 monitors Wink , the coloured line that relates to each staking plan above the graph are the width smaller than a hair, so it is not possible to differentiate between a few of them. If possible, make then a bit thicker, but not as thick as a local counsellor!! Shocked

The graph itself is fine.
Back to top
View user's profile Send private message
DeepJoy



Joined: 20 Jun 2007
Posts: 65

PostPosted: Fri Aug 10, 2007 12:45 pm    Post subject: Reply with quote

win2win wrote:
If possible, make then a bit thicker

Agreed, (I'm using an ordinary laptop btw). No biggie, should be easy to fix.

Also, one idea that occurs to me is: would it be possible for a 3d type graph option? That way, you'd be able to distinguish the different lines more easily. Perhaps you could have a small 2d graph on the main page and a 3d one in the graph page?
Back to top
View user's profile Send private message
support
Site Admin


Joined: 20 Jun 2007
Posts: 382
Location: London

PostPosted: Fri Aug 10, 2007 5:55 pm    Post subject: Reply with quote

The graph feature in TSM uses something called ZedGraph, which i believe currently only allows 2D charts. I must admit i have not looked at the documentation for a good few months.

A quick look back at the ZedGraph site shows that on their latest update they added this

* The color of individual symbols & bars can be controlled by a new ColorValue property of the PointPair

I may be able to use this to help make distinguishing between graph lines.

The main problem with the graph feature i feel is that there simply is not 15 different colours that can be used. Hence the ability to pick and choose what staking plan results to show. In the coming month i will be doing what i can to fix this !
Cheers
Back to top
View user's profile Send private message Send e-mail
DeepJoy



Joined: 20 Jun 2007
Posts: 65

PostPosted: Sat Aug 11, 2007 4:45 pm    Post subject: Reply with quote

Cheers - yes I can see that with a multitude of staking plans it's hard to represent all the results in one graph - much appreciate the energy being applied to enhance things!
Back to top
View user's profile Send private message
DeepJoy



Joined: 20 Jun 2007
Posts: 65

PostPosted: Sat Aug 11, 2007 5:10 pm    Post subject: Reply with quote

I don't know how useful this is, but what about an option to use more than one graph? It might look something like the graphs here:-

http://zedgraph.org/wiki/index.php?title=Stack_charts_vertically_and_align_the_X_axes
Back to top
View user's profile Send private message
win2win



Joined: 30 Jul 2007
Posts: 7

PostPosted: Sun Aug 12, 2007 1:00 pm    Post subject: Reply with quote

...and in VB.NET that would translate by magic;

Code:

Private Sub CreateGraph_ThreeVerticalPanes(ByVal z1 As ZedGraphControl)
   Dim master As MasterPane = z1.MasterPane

   ' Fill the background
   master.Fill = New Fill(Color.White, Color.FromArgb(220, 220, 255), 45F)
   ' Clear out the initial GraphPane
   master.PaneList.Clear()

   ' Show the masterpane title
   master.Title.IsVisible = True
   master.Title.Text = "Synchronized Graph Demo"

   ' Leave a margin around the masterpane, but only a small gap between panes
   master.Margin.All = 10
   master.InnerPaneGap = 5

   ' The titles for the individual GraphPanes
   Dim yLabels As String() = {"Rate, m/s", "Pressure, dynes/cm", "Count, units/hr"}

   Dim rotator As New ColorSymbolRotator()
   For j As Integer = 0 To 2

      ' Create a new graph -- dimensions to be set later by MasterPane Layout
      Dim myPaneT As New GraphPane(New Rectangle(10, 10, 10, 10), "", "Time, Days", yLabels(j))

      'myPaneT.Fill = new Fill( Color.FromArgb( 230, 230, 255 ) );
      myPaneT.Fill.IsVisible = False

      ' Fill the Chart background
      myPaneT.Chart.Fill = New Fill(Color.White, Color.LightYellow, 45F)
      ' Set the BaseDimension, so fonts are scale a little bigger
      myPaneT.BaseDimension = 3F

      ' Hide the XAxis scale and title
      myPaneT.XAxis.Title.IsVisible = False
      myPaneT.XAxis.Scale.IsVisible = False
      ' Hide the legend, border, and GraphPane title
      myPaneT.Legend.IsVisible = False
      myPaneT.Border.IsVisible = False
      myPaneT.Title.IsVisible = False
      ' Get rid of the tics that are outside the chart rect
      myPaneT.XAxis.MajorTic.IsOutside = False
      myPaneT.XAxis.MinorTic.IsOutside = False
      ' Show the X grids
      myPaneT.XAxis.MajorGrid.IsVisible = True
      myPaneT.XAxis.MinorGrid.IsVisible = True
      ' Remove all margins
      myPaneT.Margin.All = 0
      ' Except, leave some top margin on the first GraphPane
      If j = 0 Then
         myPaneT.Margin.Top = 20
      End If
      ' And some bottom margin on the last GraphPane
      ' Also, show the X title and scale on the last GraphPane only
      If j = 2 Then
         myPaneT.XAxis.Title.IsVisible = True
         myPaneT.XAxis.Scale.IsVisible = True
         myPaneT.Margin.Bottom = 10
      End If

      If j > 0 Then
         myPaneT.YAxis.Scale.IsSkipLastLabel = True
      End If

      ' This sets the minimum amount of space for the left and right side, respectively
      ' The reason for this is so that the ChartRect's all end up being the same size.
      myPaneT.YAxis.MinSpace = 80
      myPaneT.Y2Axis.MinSpace = 20

      ' Make up some data arrays based on the Sine function
      Dim list As New PointPairList()
      For i As Integer = 0 To 35
         Dim x As Double = CDbl(i) + 5 + j * 3
         Dim y As Double = (j + 1) * (j + 1) * 10 * (1.5 + Math.Sin(CDbl(i) * 0.2 + CDbl(j)))
         list.Add(x, y)
      Next

      ' Create a curve
      Dim myCurve As LineItem = myPaneT.AddCurve("Type " + j.ToString(), list, rotator.NextColor, rotator.NextSymbol)
      ' Fill the curve symbols with white
      myCurve.Symbol.Fill = New Fill(Color.White)

      ' Add the GraphPane to the MasterPane.PaneList
      master.Add(myPaneT)
   Next

   Using g As Graphics = Me.CreateGraphics()
      ' Align the GraphPanes vertically
      master.SetLayout(g, PaneLayout.SingleColumn)
      master.AxisChange(g)
   End Using

End Sub
Back to top
View user's profile Send private message
support
Site Admin


Joined: 20 Jun 2007
Posts: 382
Location: London

PostPosted: Sun Aug 12, 2007 1:32 pm    Post subject: Reply with quote

Cheers guys for all your help. Its obviously something your keen for me to fix Smile
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    thestakingmachine.com Forum Index -> Suggestions All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Home | Detailed Features | Automated Betting | Free Download | Purchase | TSM Forum | Support | | |